Mercurial > pidgin
diff src/protocols/yahoo/yahoo.c @ 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 | e901fd3ebbad |
children | 7f3f4aa114ad |
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)