]> diplodocus.org Git - nmh/commitdiff
Increase size of buffer to avoid warning from gcc -Wformat-truncation.
authorDavid Levine <levinedl@acm.org>
Mon, 17 Jul 2017 00:06:01 +0000 (20:06 -0400)
committerDavid Levine <levinedl@acm.org>
Mon, 17 Jul 2017 00:13:49 +0000 (20:13 -0400)
mts/smtp/smtp.c

index 0ef19b01cd305502eb83054e146caaa4574d9b5e..7808e1a70871454de78e9e306e4ad147f7383bdd 100644 (file)
@@ -870,7 +870,8 @@ char *
 rp_string (int code)
 {
     char *text;
 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:
 
     switch (sm_reply.code != NOTOK ? code : NOTOK) {
        case RP_AOK: