Stop warning about use of *printf() without a format.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 15 Feb 2009 15:29:59 +0000 (15:29 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 15 Feb 2009 15:29:59 +0000 (15:29 +0000)
apps/engine.c
apps/s_client.c

index baee8243dbb33c25515e2da8fab1b4353954e5b7..78e9f2b67bb2f38fe4a4bff8caacebd21971acb1 100644 (file)
@@ -247,7 +247,7 @@ static int util_verbose(ENGINE *e, int verbose, BIO *bio_out, const char *indent
                         /* Now decide on the output */
                         if(xpos == 0)
                                 /* Do an indent */
-                                xpos = BIO_printf(bio_out, indent);
+                                xpos = BIO_puts(bio_out, indent);
                         else
                                 /* Otherwise prepend a ", " */
                                 xpos += BIO_printf(bio_out, ", ");
@@ -258,7 +258,7 @@ static int util_verbose(ENGINE *e, int verbose, BIO *bio_out, const char *indent
                                        (xpos + (int)strlen(name) > line_wrap))
                                         {
                                         BIO_printf(bio_out, "\n");
-                                        xpos = BIO_printf(bio_out, indent);
+                                        xpos = BIO_puts(bio_out, indent);
                                         }
                                 xpos += BIO_printf(bio_out, "%s", name);
                                 }
index dcc289b7988783378f8e937ccf93528e8d37071c..5f09c3129736cec2b989d0ba436440bf91aeff18 100644 (file)
@@ -237,7 +237,7 @@ static unsigned int psk_client_cb(SSL *ssl, const char *hint, char *identity,
                BIO_printf(bio_c_out, "Received PSK identity hint '%s'\n", hint);
 
        /* lookup PSK identity and PSK key based on the given identity hint here */
-       ret = BIO_snprintf(identity, max_identity_len, psk_identity);
+       ret = BIO_snprintf(identity, max_identity_len, "%s", psk_identity);
        if (ret < 0 || (unsigned int)ret > max_identity_len)
                goto out_err;
        if (c_debug)