summaryrefslogtreecommitdiff
path: root/lib/dict.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-10-08 00:02:32 +0000
committerYang Tse <yangsita@gmail.com>2009-10-08 00:02:32 +0000
commit4798f4e65258afb6935d0b471e7d1b5a0d5edf1e (patch)
tree028ca561904652f670439e9952a7b4ef063bdbfa /lib/dict.c
parentb38e28b6bc02c468bd4be4bb04a8bf5220b929f3 (diff)
downloadcurl-4798f4e65258afb6935d0b471e7d1b5a0d5edf1e.tar.gz
Fix compiler warning: addition result could be truncated before cast to bigger sized type
Diffstat (limited to 'lib/dict.c')
-rw-r--r--lib/dict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dict.c b/lib/dict.c
index 223eddc0e..1c7d5c9f8 100644
--- a/lib/dict.c
+++ b/lib/dict.c
@@ -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] */