mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
tool_paramhlp: Fixed display of URL index in password prompt for --next
Commit f3bae6ed73
added the URL index to the password prompt when using
--next. Unfortunately, because the size_t specifier (%zu) is not
supported by all sprintf() implementations we use the curl_off_t format
specifier instead. The display of an incorrect value arises on platforms
where size_t and curl_off_t are of a different size.
This commit is contained in:
parent
cd2b73b3ed
commit
db05d7a731
@ -426,7 +426,7 @@ static CURLcode checkpasswd(const char *kind, /* for what purpose */
|
||||
curlx_msnprintf(prompt, sizeof(prompt),
|
||||
"Enter %s password for user '%s' on URL #%"
|
||||
CURL_FORMAT_CURL_OFF_TU ":",
|
||||
kind, *userpwd, i + 1);
|
||||
kind, *userpwd, (curl_off_t) (i + 1));
|
||||
|
||||
/* get password */
|
||||
getpass_r(prompt, passwd, sizeof(passwd));
|
||||
|
Loading…
Reference in New Issue
Block a user