We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a25c9ba commit c3d31b8Copy full SHA for c3d31b8
lib/strerror.c
@@ -938,7 +938,7 @@ const char *Curl_winapi_strerror(DWORD err, char *buf, size_t buflen)
938
939
#ifndef CURL_DISABLE_VERBOSE_STRINGS
940
if(!get_winapi_error(err, buf, buflen)) {
941
- msnprintf(buf, buflen, "Unknown error %u (0x%08X)", err, err);
+ msnprintf(buf, buflen, "Unknown error %lu (0x%08lX)", err, err);
942
}
943
#else
944
{
lib/vtls/x509asn1.c
@@ -973,7 +973,7 @@ static int do_pubkey(struct Curl_easy *data, int certnum,
973
infof(data, " ECC Public Key (%lu bits)", len);
974
if(data->set.ssl.certinfo) {
975
char q[sizeof(len) * 8 / 3 + 1];
976
- (void)msnprintf(q, sizeof(q), "%lu", len);
+ (void)msnprintf(q, sizeof(q), "%zu", len);
977
if(ssl_push_certinfo(data, certnum, "ECC Public Key", q))
978
return 1;
979
@@ -1007,7 +1007,7 @@ static int do_pubkey(struct Curl_easy *data, int certnum,
1007
infof(data, " RSA Public Key (%lu bits)", len);
1008
1009
char r[sizeof(len) * 8 / 3 + 1];
1010
- msnprintf(r, sizeof(r), "%lu", len);
+ msnprintf(r, sizeof(r), "%zu", len);
1011
if(ssl_push_certinfo(data, certnum, "RSA Public Key", r))
1012
1013
0 commit comments