# HG changeset patch # User Mark Doliner # Date 1047878469 0 # Node ID 71ef8462630ea5813ab09dee60e5d3dbde9a49dd # Parent 506141e196dce96f65c1c18515009e7b70eb0352 [gaim-migrate @ 5129] Resume ass-kicking. committer: Tailor Script diff -r 506141e196dc -r 71ef8462630e src/protocols/oscar/info.c --- a/src/protocols/oscar/info.c Mon Mar 17 04:28:32 2003 +0000 +++ b/src/protocols/oscar/info.c Mon Mar 17 05:21:09 2003 +0000 @@ -624,17 +624,17 @@ * about the buddy icon that the user has stored on * the server. */ -/* char *iconstr; outinfo->iconstrlen = length-4; outinfo->iconstrlen -= aim_bstream_advance(bs, aimbs_get16(bs)); outinfo->iconstrlen -= aim_bstream_advance(bs, aimbs_get16(bs)); if (aim_bstream_empty(bs) >= outinfo->iconstrlen) { - iconstr = aimbs_getraw(bs, outinfo->iconstrlen); + char *iconstr = aimbs_getraw(bs, outinfo->iconstrlen); memcpy(outinfo->iconstr, iconstr, outinfo->iconstrlen); - } else + free(iconstr); + } else { outinfo->iconstrlen = 0; - free(iconstr); */ - outinfo->iconstrlen = 0; + outinfo->iconstr[0] = '\0'; + } } else if (type == 0x001e) { /*