diff src/protocols/oscar/locate.c @ 10563:3e2cd3fe8897

[gaim-migrate @ 11944] Fix a problem Justin Wood noticed and supplied sf patch 920581 to fix My fix is slightly difference. The problem was that, if an iChat user had an available message up, then they changed their buddy icon, Gaim would stop showing the available message for the person. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 01 Feb 2005 05:19:27 +0000
parents 08c8a18fb557
children ecc0f22db510
line wrap: on
line diff
--- a/src/protocols/oscar/locate.c	Tue Feb 01 05:02:40 2005 +0000
+++ b/src/protocols/oscar/locate.c	Tue Feb 01 05:19:27 2005 +0000
@@ -755,7 +755,7 @@
 					} break;
 
 					case 0x0002: { /* An available message */
-						if (length2 > 4) {
+						if (length2 >= 4) {
 							free(outinfo->avail);
 							outinfo->avail_len = aimbs_get16(bs);
 							outinfo->avail = aimbs_getstr(bs, outinfo->avail_len);