mirror of
https://github.com/curl/curl.git
synced 2026-08-12 07:50:52 +03:00
Fix compiler warning: addition result could be truncated before cast to bigger sized type
This commit is contained in:
parent
b38e28b6bc
commit
4798f4e652
3 changed files with 4 additions and 4 deletions
|
|
@ -125,7 +125,7 @@ static char *unescape_word(struct SessionHandle *data, const char *inputbuff)
|
|||
if(!newp)
|
||||
return NULL;
|
||||
|
||||
dictp = malloc(len*2 + 1); /* add one for terminating zero */
|
||||
dictp = malloc(((size_t)len)*2 + 1); /* add one for terminating zero */
|
||||
if(dictp) {
|
||||
/* According to RFC2229 section 2.2, these letters need to be escaped with
|
||||
\[letter] */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue