Mercurial > pidgin
changeset 866:646acb9e9c38
[gaim-migrate @ 876]
toc can receive up to 8k, BUF_LONG is 4k. no previous buffer overflow since BUF_LONG was being inforced, but possible data loss.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 08 Sep 2000 09:32:47 +0000 |
parents | 789b2f0bb133 |
children | 07de7ea1434f |
files | src/toc.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/toc.c Fri Sep 08 08:35:57 2000 +0000 +++ b/src/toc.c Fri Sep 08 09:32:47 2000 +0000 @@ -366,8 +366,8 @@ char *c; char *l; - buf = g_malloc(BUF_LONG); - if (wait_reply(buf, BUF_LONG) < 0) { + buf = g_malloc(2 * BUF_LONG); + if (wait_reply(buf, 2 * BUF_LONG) < 0) { signoff(); hide_login_progress("Connection Closed"); g_free(buf);