coverity 1464213: API usage errors (PRINTF_ARGS)
authorPauli <paul.dale@oracle.com>
Sun, 14 Jun 2020 22:13:43 +0000 (08:13 +1000)
committerPauli <paul.dale@oracle.com>
Wed, 17 Jun 2020 05:59:58 +0000 (15:59 +1000)
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12149)

apps/lib/http_server.c

index 11f0b1fcb5a28e778e52c8ee660ca61f7b3de687..5c009b99902e9af9b37d974ef8e6d79f4ed0ea42 100644 (file)
@@ -397,7 +397,7 @@ int http_server_get_asn1_req(const ASN1_ITEM *it, ASN1_VALUE **preq,
         log_message(prog, LOG_ERR, "Error parsing request");
     } else if (ppath != NULL && (*ppath = OPENSSL_strdup(url)) == NULL) {
         log_message(prog, LOG_ERR,
-                    "Out of memory allocating %d bytes", strlen(url) + 1);
+                    "Out of memory allocating %zu bytes", strlen(url) + 1);
         ASN1_item_free(req, it);
         goto fatal;
     }