From: Ralph Corderoy Date: Fri, 27 Oct 2017 15:36:57 +0000 (+0100) Subject: imaptest.c: Don't use error message as adios()'s format. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/14ac4332fa909bb10b37f9542b07f607ba4eda9f?hp=da665985decffc0a5c7bed784f225d2972782bcd imaptest.c: Don't use error message as adios()'s format. Add a `"%s"' format string. Stops gcc complaining. --- diff --git a/uip/imaptest.c b/uip/imaptest.c index 8d3bccb7..2032e671 100644 --- a/uip/imaptest.c +++ b/uip/imaptest.c @@ -216,20 +216,20 @@ main (int argc, char **argv) if (initialtls || tls) { if (netsec_set_tls(nsc, 1, 0, &errstr) != OK) - adios(NULL, errstr); + adios(NULL, "%s", errstr); if (initialtls && netsec_negotiate_tls(nsc, &errstr) != OK) - adios(NULL, errstr); + adios(NULL, "%s", errstr); } if (sasl) { if (netsec_set_sasl_params(nsc, "imap", saslmech, imap_sasl_callback, nsc, &errstr) != OK) - adios(NULL, errstr); + adios(NULL, "%s", errstr); } if ((cp = netsec_readline(nsc, &len, &errstr)) == NULL) { - adios(NULL, errstr); + adios(NULL, "%s", errstr); } if (has_prefix(cp, "* BYE")) { @@ -295,7 +295,7 @@ main (int argc, char **argv) goto finish; } if (netsec_negotiate_tls(nsc, &errstr) != OK) { - adios(NULL, errstr); + adios(NULL, "%s", errstr); } }