From: Amos Jeffries Date: Tue, 7 Feb 2017 08:20:39 +0000 (+1300) Subject: GCC7: raise FTP Gateway CTRL channel buffer to 16KB X-Git-Tag: M-staged-PR71~279 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c762c36d01281051b2866c3b6f060cb72c867e0;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]; /*