mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
tool_urlglob: use the correct format specifier for curl_off_t in msnprintf
Closes #11698
This commit is contained in:
parent
73b6d4e814
commit
20e3287aca
@ -591,7 +591,7 @@ CURLcode glob_next_url(char **globbed, struct URLGlob *glob)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case UPTNumRange:
|
case UPTNumRange:
|
||||||
msnprintf(buf, buflen, "%0*lu",
|
msnprintf(buf, buflen, "%0*" CURL_FORMAT_CURL_OFF_T,
|
||||||
pat->content.NumRange.padlength,
|
pat->content.NumRange.padlength,
|
||||||
pat->content.NumRange.ptr_n);
|
pat->content.NumRange.ptr_n);
|
||||||
len = strlen(buf);
|
len = strlen(buf);
|
||||||
@ -661,7 +661,7 @@ CURLcode glob_match_url(char **result, char *filename, struct URLGlob *glob)
|
|||||||
appendlen = 1;
|
appendlen = 1;
|
||||||
break;
|
break;
|
||||||
case UPTNumRange:
|
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.padlength,
|
||||||
pat->content.NumRange.ptr_n);
|
pat->content.NumRange.ptr_n);
|
||||||
appendthis = numbuf;
|
appendthis = numbuf;
|
||||||
|
Loading…
Reference in New Issue
Block a user