tool_urlglob: use the correct format specifier for curl_off_t in msnprintf

Closes #11698
This commit is contained in:
Maksim Sciepanienka 2023-08-20 01:59:31 +02:00 committed by Daniel Stenberg
parent 73b6d4e814
commit 20e3287aca
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -591,7 +591,7 @@ CURLcode glob_next_url(char **globbed, struct URLGlob *glob)
}
break;
case UPTNumRange:
msnprintf(buf, buflen, "%0*lu",
msnprintf(buf, buflen, "%0*" CURL_FORMAT_CURL_OFF_T,
pat->content.NumRange.padlength,
pat->content.NumRange.ptr_n);
len = strlen(buf);
@ -661,7 +661,7 @@ CURLcode glob_match_url(char **result, char *filename, struct URLGlob *glob)
appendlen = 1;
break;
case UPTNumRange:
msnprintf(numbuf, sizeof(numbuf), "%0*lu",
msnprintf(numbuf, sizeof(numbuf), "%0*" CURL_FORMAT_CURL_OFF_T,
pat->content.NumRange.padlength,
pat->content.NumRange.ptr_n);
appendthis = numbuf;