diff src/protocols/oscar/locate.c @ 11024:1d58cc6c4552

[gaim-migrate @ 12897] sf patch #1222377, from Evan Schoenberg "Improve buddy icon retrieval" committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 23 Jun 2005 02:24:22 +0000
parents 9a397c858639
children bd8ac1d4b2f2
line wrap: on
line diff
--- a/src/protocols/oscar/locate.c	Wed Jun 22 23:23:14 2005 +0000
+++ b/src/protocols/oscar/locate.c	Thu Jun 23 02:24:22 2005 +0000
@@ -746,8 +746,9 @@
 					} break;
 
 					case 0x0001: { /* A buddy icon checksum */
-						if ((length2 > 0) && (number == 0x01)) {
+						if ((length2 > 0) && ((number == 0x00) || (number == 0x01))) {
 							free(outinfo->iconcsum);
+							outinfo->iconcsumtype = number;
 							outinfo->iconcsum = aimbs_getraw(bs, length2);
 							outinfo->iconcsumlen = length2;
 						} else