comparison src/toc.c @ 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 55194c5f338f
children a88af4cc626a
comparison
equal deleted inserted replaced
865:789b2f0bb133 866:646acb9e9c38
364 { 364 {
365 char *buf; 365 char *buf;
366 char *c; 366 char *c;
367 char *l; 367 char *l;
368 368
369 buf = g_malloc(BUF_LONG); 369 buf = g_malloc(2 * BUF_LONG);
370 if (wait_reply(buf, BUF_LONG) < 0) { 370 if (wait_reply(buf, 2 * BUF_LONG) < 0) {
371 signoff(); 371 signoff();
372 hide_login_progress("Connection Closed"); 372 hide_login_progress("Connection Closed");
373 g_free(buf); 373 g_free(buf);
374 return; 374 return;
375 } 375 }