comparison 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
comparison
equal deleted inserted replaced
11023:9a99b0815459 11024:1d58cc6c4552
744 /* This is always 5 bytes of "0x02 01 d2 04 72"? */ 744 /* This is always 5 bytes of "0x02 01 d2 04 72"? */
745 aim_bstream_advance(bs, length2); 745 aim_bstream_advance(bs, length2);
746 } break; 746 } break;
747 747
748 case 0x0001: { /* A buddy icon checksum */ 748 case 0x0001: { /* A buddy icon checksum */
749 if ((length2 > 0) && (number == 0x01)) { 749 if ((length2 > 0) && ((number == 0x00) || (number == 0x01))) {
750 free(outinfo->iconcsum); 750 free(outinfo->iconcsum);
751 outinfo->iconcsumtype = number;
751 outinfo->iconcsum = aimbs_getraw(bs, length2); 752 outinfo->iconcsum = aimbs_getraw(bs, length2);
752 outinfo->iconcsumlen = length2; 753 outinfo->iconcsumlen = length2;
753 } else 754 } else
754 aim_bstream_advance(bs, length2); 755 aim_bstream_advance(bs, length2);
755 } break; 756 } break;