lib: fix a few *printf() flag mistakes

Reported-by: Gisle Vanem
Ref: #11574
Closes #11579
This commit is contained in:
Daniel Stenberg 2023-08-02 16:02:48 +02:00
parent 20f4e94eeb
commit 367a66b130
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 3 additions and 3 deletions

View file

@ -938,7 +938,7 @@ const char *Curl_winapi_strerror(DWORD err, char *buf, size_t buflen)
#ifndef CURL_DISABLE_VERBOSE_STRINGS
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
{