From: Mark D. <the...@us...> - 2003-03-17 05:21:13
|
Update of /cvsroot/gaim/gaim/src/protocols/oscar In directory sc8-pr-cvs1:/tmp/cvs-serv27077/src/protocols/oscar Modified Files: info.c Log Message: Resume ass-kicking. Index: info.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/info.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- info.c 17 Mar 2003 04:27:19 -0000 1.25 +++ info.c 17 Mar 2003 05:21:09 -0000 1.26 @@ -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) { /* |