]> diplodocus.org Git - nmh/commitdiff
imaptest.c: Don't use error message as adios()'s format.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 27 Oct 2017 15:36:57 +0000 (16:36 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 27 Oct 2017 15:38:21 +0000 (16:38 +0100)
Add a `"%s"' format string.  Stops gcc complaining.

uip/imaptest.c

index 8d3bccb791c06f1b42e398dd3dda055f5f85d3f5..2032e671a9f039be78109041048c564a336fcd17 100644 (file)
@@ -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);
        }
     }