changeset 2723:ca32b587589f

[gaim-migrate @ 2736] Valdis Kletnieks (sysphrog) suggested this fix. This seems really odd to me. Typical Yahoo. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 15 Nov 2001 22:26:13 +0000
parents abecab600451
children 7f3f4aa114ad
files src/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Thu Nov 15 20:18:07 2001 +0000
+++ b/src/protocols/yahoo/yahoo.c	Thu Nov 15 22:26:13 2001 +0000
@@ -229,7 +229,7 @@
 		pos += 2;
 		pair->key = strtol(key, NULL, 10);
 
-		value = g_malloc(len - pos);
+		value = g_malloc(len - pos + 1);
 		x = 0;
 		while (pos + 1 < len) {
 			if (data[pos] == 0xc0 && data[pos + 1] == 0x80)