diff options
Diffstat (limited to 'src/irc/irc-dcc.c')
-rw-r--r-- | src/irc/irc-dcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc-dcc.c b/src/irc/irc-dcc.c index c51b6cb12..b35ecc459 100644 --- a/src/irc/irc-dcc.c +++ b/src/irc/irc-dcc.c @@ -1294,7 +1294,7 @@ dcc_handle () { t_irc_dcc *ptr_dcc; int num_read, num_sent; - static char buffer[102400]; + static char buffer[DCC_MAX_BLOCKSIZE]; uint32_t pos; fd_set read_fd; static struct timeval timeout; @@ -1453,7 +1453,7 @@ dcc_handle () gui_printf (NULL, _("%s DCC failed because blocksize is too " "big. Check value of \"dcc_blocksize\" option, " "max is %d.\n"), - sizeof (buffer)); + WEECHAT_ERROR, DCC_MAX_BLOCKSIZE); dcc_close (ptr_dcc, DCC_FAILED); dcc_redraw (HOTLIST_MSG); continue; |