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