changeset 4809:71ef8462630e

[gaim-migrate @ 5129] Resume ass-kicking. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 17 Mar 2003 05:21:09 +0000
parents 506141e196dc
children 0abbbeec0ee8
files src/protocols/oscar/info.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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) {
 			/*