lib: fix a few *printf() flag mistakes
Reported-by: Gisle Vanem Ref: #11574 Closes #11579
This commit is contained in:
Родитель
20f4e94eeb
Коммит
367a66b130
|
@ -938,7 +938,7 @@ const char *Curl_winapi_strerror(DWORD err, char *buf, size_t buflen)
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
||||||
if(!get_winapi_error(err, buf, buflen)) {
|
if(!get_winapi_error(err, buf, buflen)) {
|
||||||
msnprintf(buf, buflen, "Unknown error %u (0x%08X)", err, err);
|
msnprintf(buf, buflen, "Unknown error %lu (0x%08lX)", err, err);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
|
|
|
@ -973,7 +973,7 @@ static int do_pubkey(struct Curl_easy *data, int certnum,
|
||||||
infof(data, " ECC Public Key (%lu bits)", len);
|
infof(data, " ECC Public Key (%lu bits)", len);
|
||||||
if(data->set.ssl.certinfo) {
|
if(data->set.ssl.certinfo) {
|
||||||
char q[sizeof(len) * 8 / 3 + 1];
|
char q[sizeof(len) * 8 / 3 + 1];
|
||||||
(void)msnprintf(q, sizeof(q), "%lu", len);
|
(void)msnprintf(q, sizeof(q), "%zu", len);
|
||||||
if(ssl_push_certinfo(data, certnum, "ECC Public Key", q))
|
if(ssl_push_certinfo(data, certnum, "ECC Public Key", q))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -1007,7 +1007,7 @@ static int do_pubkey(struct Curl_easy *data, int certnum,
|
||||||
infof(data, " RSA Public Key (%lu bits)", len);
|
infof(data, " RSA Public Key (%lu bits)", len);
|
||||||
if(data->set.ssl.certinfo) {
|
if(data->set.ssl.certinfo) {
|
||||||
char r[sizeof(len) * 8 / 3 + 1];
|
char r[sizeof(len) * 8 / 3 + 1];
|
||||||
msnprintf(r, sizeof(r), "%lu", len);
|
msnprintf(r, sizeof(r), "%zu", len);
|
||||||
if(ssl_push_certinfo(data, certnum, "RSA Public Key", r))
|
if(ssl_push_certinfo(data, certnum, "RSA Public Key", r))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче