From 7b4b166718cb01b170668e916d0bad09518eacc1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 14 Aug 2001 08:20:17 +0000 Subject: added typecasts when converting from unsigned int to int --- lib/escape.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3