diff src/protocols/oscar/info.c @ 4804:9810ce8e7a96

[gaim-migrate @ 5124] Here ya go, Rob. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 17 Mar 2003 04:02:30 +0000
parents 4938d12f6d48
children 3f44efdfb4cf
line wrap: on
line diff
--- a/src/protocols/oscar/info.c	Mon Mar 17 01:57:37 2003 +0000
+++ b/src/protocols/oscar/info.c	Mon Mar 17 04:02:30 2003 +0000
@@ -618,10 +618,22 @@
 
 		} else if (type == 0x001d) {
 			/*
-			 * Type 29: Unknown.
+			 * Type = 0x001d
 			 *
-			 * Currently very rare. Always 18 bytes of mostly zero.
+			 * Buddy icon information.  This contains the info 
+			 * 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);
+				memcpy(outinfo->iconstr, iconstr, outinfo->iconstrlen);
+			} else
+				outinfo->iconstrlen = 0;
+			free(iconstr);
 
 		} else if (type == 0x001e) {
 			/*