Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
2722:abecab600451 | 2723:ca32b587589f |
---|---|
227 } | 227 } |
228 key[x] = 0; | 228 key[x] = 0; |
229 pos += 2; | 229 pos += 2; |
230 pair->key = strtol(key, NULL, 10); | 230 pair->key = strtol(key, NULL, 10); |
231 | 231 |
232 value = g_malloc(len - pos); | 232 value = g_malloc(len - pos + 1); |
233 x = 0; | 233 x = 0; |
234 while (pos + 1 < len) { | 234 while (pos + 1 < len) { |
235 if (data[pos] == 0xc0 && data[pos + 1] == 0x80) | 235 if (data[pos] == 0xc0 && data[pos + 1] == 0x80) |
236 break; | 236 break; |
237 value[x++] = data[pos++]; | 237 value[x++] = data[pos++]; |