aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/escape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/escape.c b/lib/escape.c
index b5d35255d..167129df6 100644
--- a/lib/escape.c
+++ b/lib/escape.c
@@ -39,7 +39,7 @@
char *curl_escape(char *string, int length)
{
- int alloc = (length?length:strlen(string))+1;
+ int alloc = (length?length:(int)strlen(string))+1;
char *ns = malloc(alloc);
unsigned char in;
int newlen = alloc;
@@ -77,7 +77,7 @@ char *curl_escape(char *string, int length)
char *curl_unescape(char *string, int length)
{
- int alloc = (length?length:strlen(string))+1;
+ int alloc = (length?length:(int)strlen(string))+1;
char *ns = malloc(alloc);
unsigned char in;
int index=0;