lib: fix type of len passed to *printf's %*s

... it needs to be 'int'. Detected by Coverity CID 1486611 (etc)

Closes #7326
This commit is contained in:
Daniel Stenberg 2021-06-30 13:13:31 +02:00
parent d696ee00ee
commit 78fc6522c2
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 5 additions and 4 deletions

View file

@ -3873,7 +3873,7 @@ static CURLcode servercert(struct Curl_easy *data,
ASN1_TIME_print(mem, X509_get0_notAfter(backend->server_cert));
len = BIO_get_mem_data(mem, (char **) &ptr);
infof(data, " expire date: %.*s\n", len, ptr);
infof(data, " expire date: %.*s\n", (int)len, ptr);
(void)BIO_reset(mem);
}
#endif