From: Pauli Date: Sun, 14 Jun 2020 22:13:43 +0000 (+1000) Subject: coverity 1464213: API usage errors (PRINTF_ARGS) X-Git-Tag: openssl-3.0.0-alpha4~93 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=24b6261e5bb286fa494e7208a3de28365e0ca004;p=oweals%2Fopenssl.git coverity 1464213: API usage errors (PRINTF_ARGS) Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/12149) --- diff --git a/apps/lib/http_server.c b/apps/lib/http_server.c index 11f0b1fcb5..5c009b9990 100644 --- a/apps/lib/http_server.c +++ b/apps/lib/http_server.c @@ -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; }