adium: d2a1d52b: Fixed sending DIM messages' encoding. Fi...

zacw at adiumx.com zacw at adiumx.com
Sun Nov 22 13:41:10 EST 2009


-----------------------------------------------------------------
Revision: d2a1d52b3bbf29baa53b9ddaa635d50b6332064f
Ancestor: 212bd3655451599364562cabe553c5b7a19134ae
Author: zacw at adiumx.com
Date: 2009-11-22T18:35:14
Branch: im.pidgin.adium
URL: http://d.pidgin.im/viewmtn/revision/info/d2a1d52b3bbf29baa53b9ddaa635d50b6332064f

Modified files:
        libpurple/protocols/oscar/odc.c

ChangeLog: 

Fixed sending DIM messages' encoding. Fixes #9087.

The encoding bytes were being written in the wrong location, so the messages were being read back as ASCII and failing conversion, ending up being empty and not being displayed.


-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/odc.c	246f66c33d1a709c1dd5efd1c16b8d80aaa858ba
+++ libpurple/protocols/oscar/odc.c	19fbe86624736cfb6024181ae455a938fd746c2a
@@ -110,8 +110,8 @@ peer_odc_send(PeerConnection *conn, OdcF
 	byte_stream_put16(&bs, 0x0000);
 	byte_stream_put16(&bs, 0x0000);
 	byte_stream_put32(&bs, frame->payload.len);
-	byte_stream_put16(&bs, 0x0000);
 	byte_stream_put16(&bs, frame->encoding);
+	byte_stream_put16(&bs, 0x0000);	
 	byte_stream_put16(&bs, 0x0000);
 	byte_stream_put16(&bs, frame->flags);
 	byte_stream_put16(&bs, 0x0000);


More information about the Commits mailing list