mirror of
https://github.com/curl/curl.git
synced 2026-08-06 12:26:14 +03:00
src: stop overriding system printf symbols
Also:
- tool_operate: use the socket printf mask, drop cast.
Follow-up to 4deea9396b #18814
Closes #18844
This commit is contained in:
parent
34ad78da89
commit
db98daab05
25 changed files with 203 additions and 207 deletions
|
|
@ -475,7 +475,7 @@ ParameterError proto2num(const char * const *val, char **ostr, const char *str)
|
|||
else {
|
||||
char buffer[32];
|
||||
const char *p;
|
||||
msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
|
||||
curl_msnprintf(buffer, sizeof(buffer), "%.*s", (int)plen, str);
|
||||
|
||||
p = proto_token(buffer);
|
||||
|
||||
|
|
@ -584,13 +584,13 @@ static CURLcode checkpasswd(const char *kind, /* for what purpose */
|
|||
|
||||
/* build a nice-looking prompt */
|
||||
if(!i && last)
|
||||
msnprintf(prompt, sizeof(prompt),
|
||||
"Enter %s password for user '%s':",
|
||||
kind, *userpwd);
|
||||
curl_msnprintf(prompt, sizeof(prompt),
|
||||
"Enter %s password for user '%s':",
|
||||
kind, *userpwd);
|
||||
else
|
||||
msnprintf(prompt, sizeof(prompt),
|
||||
"Enter %s password for user '%s' on URL #%zu:",
|
||||
kind, *userpwd, i + 1);
|
||||
curl_msnprintf(prompt, sizeof(prompt),
|
||||
"Enter %s password for user '%s' on URL #%zu:",
|
||||
kind, *userpwd, i + 1);
|
||||
|
||||
/* get password */
|
||||
getpass_r(prompt, passwd, sizeof(passwd));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue