Skip to content

Commit

Permalink
tool_urlglob: use the correct format specifier for curl_off_t in msnp…
Browse files Browse the repository at this point in the history
…rintf

Closes curl#11698
  • Loading branch information
majstar authored and ptitSeb committed Sep 25, 2023
1 parent 94842d5 commit d3237b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tool_urlglob.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d3237b6

Please sign in to comment.