mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:43:35 +03:00
tool: make the length argument an int for printf()-.* flags
Closes #11578
This commit is contained in:
parent
139ecfb869
commit
ce1fc742c1
2 changed files with 6 additions and 4 deletions
|
|
@ -328,7 +328,8 @@ CURLcode tool_setopt_flags(CURL *curl, struct GlobalConfig *config,
|
|||
if(!rest)
|
||||
break; /* handled them all */
|
||||
/* replace with all spaces for continuation line */
|
||||
msnprintf(preamble, sizeof(preamble), "%*s", strlen(preamble), "");
|
||||
msnprintf(preamble, sizeof(preamble), "%*s", (int)strlen(preamble),
|
||||
"");
|
||||
}
|
||||
}
|
||||
/* If any bits have no definition, output an explicit value.
|
||||
|
|
@ -371,7 +372,8 @@ CURLcode tool_setopt_bitmask(CURL *curl, struct GlobalConfig *config,
|
|||
if(!rest)
|
||||
break; /* handled them all */
|
||||
/* replace with all spaces for continuation line */
|
||||
msnprintf(preamble, sizeof(preamble), "%*s", strlen(preamble), "");
|
||||
msnprintf(preamble, sizeof(preamble), "%*s", (int)strlen(preamble),
|
||||
"");
|
||||
}
|
||||
}
|
||||
/* If any bits have no definition, output an explicit value.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue