From 7c762c36d01281051b2866c3b6f060cb72c867e0 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 7 Feb 2017 21:20:39 +1300 Subject: [PATCH] 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 --- src/clients/FtpGateway.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; /* -- 2.47.2