From 0483d6ce12d75f267a9e8b6cd16280ef1f4f2e2a Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 16 Jul 2017 20:06:01 -0400 Subject: [PATCH] Increase size of buffer to avoid warning from gcc -Wformat-truncation. --- mts/smtp/smtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.56.0