summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-10-02 01:01:31 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-10-02 01:01:31 +0200
commit0b2894bff7b3ba57b832e9a60f8009189b317c91 (patch)
tree7866c5540178764af1f2f1abf2b4cd85e1d1f482
parent9feb497e7a1f3855b5d19cee1d89acc1efa82aa0 (diff)
downloadcurl-bagder/curl-libcurl-binary-post.tar.gz
fixup a little typecastbagder/curl-libcurl-binary-post
-rw-r--r--src/tool_setopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_setopt.c b/src/tool_setopt.c
index 2982636e7..e1769ab04 100644
--- a/src/tool_setopt.c
+++ b/src/tool_setopt.c
@@ -240,7 +240,7 @@ static char *c_escape(const char *str, curl_off_t len)
}
/* Allocate space based on worst-case */
- escaped = malloc(4 * len + 1 + cutoff);
+ escaped = malloc(4 * (size_t)len + 1 + cutoff);
if(!escaped)
return NULL;