From: Amos Jeffries Date: Thu, 9 Feb 2017 02:41:58 +0000 (+1300) Subject: GCC7: raise FTP Gateway CTRL channel buffer to 16KB X-Git-Tag: SQUID_4_0_19~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8511738737bd23c4cbb05023f2d7a51608370699;p=thirdparty%2Fsquid.git GCC7: raise FTP Gateway CTRL channel buffer to 16KB Fixes error: %s directive output may be truncated writing up to 8191 bytes into a region of size 1019 note: snprintf output between 8 and 8199 bytes into a destination of size 1024 --- diff --git a/src/clients/FtpGateway.cc b/src/clients/FtpGateway.cc index 2f1a04ea59..aa3f2e9b0d 100644 --- a/src/clients/FtpGateway.cc +++ b/src/clients/FtpGateway.cc @@ -189,7 +189,7 @@ typedef struct { char *link; } ftpListParts; -#define CTRL_BUFLEN 1024 +#define CTRL_BUFLEN 16*1024 static char cbuf[CTRL_BUFLEN]; /*