X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c74acc3a4973a9b517a10ff8c19e44f42f4f5693..faf6326828be2108facd64fcca291c4ffb523eea:/mts/smtp/smtp.c diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 0ef19b01..fed756b7 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -59,9 +59,9 @@ static int sendmail_init (char *, int, int, int, int, const char *, const char *); static int rclient (char *, char *, char **); -static int sm_ierror (const char *fmt, ...); +static int sm_ierror (const char *fmt, ...) CHECK_PRINTF(1, 2); static int sm_nerror (char *); -static int smtalk (int time, char *fmt, ...); +static int smtalk (int time, char *fmt, ...) CHECK_PRINTF(2, 3); static int sm_wstream (char *, int); static int smhear (void); static char *EHLOset (char *); @@ -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: