X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c74acc3a4973a9b517a10ff8c19e44f42f4f5693..d42f7b865b7f765b14f05f2561ddb2a4f1e8cee9:/mts/smtp/smtp.c diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index 0ef19b01..e3ac50d0 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -59,12 +59,12 @@ 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 *); +static char *EHLOset (char *) PURE; static int sm_sasl_callback(enum sasl_message_type, unsigned const char *, unsigned int, unsigned char **, unsigned int *, 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: