Mercurial > pidgin
diff libpurple/protocols/qq/packet_parse.c @ 24145:ec3f7d3e0445
2008.10.04 - lonicerae <lonicerae(at)gmail.com>
* fixed a bug in qq_base.c
| author | SHiNE CsyFeK <csyfek@gmail.com> |
|---|---|
| date | Wed, 22 Oct 2008 14:49:38 +0000 |
| parents | c2253c485728 |
| children | ce94189f15ad |
line wrap: on
line diff
--- a/libpurple/protocols/qq/packet_parse.c Wed Oct 22 14:48:46 2008 +0000 +++ b/libpurple/protocols/qq/packet_parse.c Wed Oct 22 14:49:38 2008 +0000 @@ -151,7 +151,10 @@ * return the number of bytes packed, otherwise return -1 */ gint qq_put32(guint8 *buf, guint32 dw) { - guint32 dw_porter; + guint32 dw_dest; + memcpy(&dw_dest, buf, sizeof(dw_dest)); + + guint32 dw_porter; dw_porter = g_htonl(dw); #ifdef PARSER_DEBUG purple_debug_info("QQ", "[DBG][put32] buf %p\n", (void *)buf);
