From: David Levine Date: Mon, 17 Jul 2017 00:06:01 +0000 (-0400) Subject: Increase size of buffer to avoid warning from gcc -Wformat-truncation. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/0483d6ce12d75f267a9e8b6cd16280ef1f4f2e2a?hp=d71151030555757c05fc69a63e370873e482bfb3 Increase size of buffer to avoid warning from gcc -Wformat-truncation. --- diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 0ef19b01..7808e1a7 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -870,7 +870,8 @@ char * rp_string (int code) { char *text; - static char buffer[BUFSIZ]; + /* The additional space is to avoid warning from gcc -Wformat-truncation. */ + static char buffer[BUFSIZ + 19]; switch (sm_reply.code != NOTOK ? code : NOTOK) { case RP_AOK: