diff libgaim/protocols/qq/buddy_list.c @ 14265:584cbd1628d0

[gaim-migrate @ 16947] Added support for QQ faces. Thanks to csyfek@gmail.com for the images and protocol update. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Mon, 21 Aug 2006 07:17:40 +0000
parents 60b1bc8dbf37
children 8ff8f1c897b5
line wrap: on
line diff
--- a/libgaim/protocols/qq/buddy_list.c	Mon Aug 21 06:06:54 2006 +0000
+++ b/libgaim/protocols/qq/buddy_list.c	Mon Aug 21 07:17:40 2006 +0000
@@ -255,7 +255,7 @@
 	qq_buddy *q_bud;
 	gint len, bytes, bytes_expected, i;
 	guint16 position, unknown;
-	guint8 *data, *cursor, bar, pascal_len;
+	guint8 *data, *cursor, pascal_len;
 	gchar *name;
 	GaimBuddy *b;
 
@@ -276,10 +276,8 @@
 			bytes = 0;
 			/* 000-003: uid */
 			bytes += read_packet_dw(data, &cursor, len, &q_bud->uid);
-			/* 004-004: 0xff if buddy is self, 0x00 otherwise */
-			bytes += read_packet_b(data, &cursor, len, &bar);
-			/* 005-005: icon index (1-255) */
-			bytes += read_packet_b(data, &cursor, len, &q_bud->icon);
+			/* 004-005: icon index (1-255) */
+			bytes += read_packet_w(data, &cursor, len, &q_bud->icon);
 			/* 006-006: age */
 			bytes += read_packet_b(data, &cursor, len, &q_bud->age);
 			/* 007-007: gender */