mirror of
https://github.com/curl/curl.git
synced 2026-07-28 17:13:07 +03:00
tool_getparam: pass in the snprintf("%.*s") string length as 'int'
Reported by Coverity CID 1515928 Closes #9679
This commit is contained in:
parent
b261389dba
commit
1527dd07f1
1 changed files with 1 additions and 1 deletions
|
|
@ -637,7 +637,7 @@ static ParameterError data_urlencode(struct GlobalConfig *global,
|
|||
return PARAM_NO_MEM;
|
||||
}
|
||||
if(nlen > 0) { /* only append '=' if we have a name */
|
||||
msnprintf(n, outlen, "%.*s=%s", nlen, nextarg, enc);
|
||||
msnprintf(n, outlen, "%.*s=%s", (int)nlen, nextarg, enc);
|
||||
size = outlen-1;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue