mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:23:33 +03:00
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:
parent
d696ee00ee
commit
78fc6522c2
3 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue