diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-14 08:20:17 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-14 08:20:17 +0000 |
commit | 7b4b166718cb01b170668e916d0bad09518eacc1 (patch) | |
tree | d588b98af3d7e6a9c9f29e44760176d39d07c52d /lib/escape.c | |
parent | e32641d412b82f3bbc42b5a6a454ec5c143588c5 (diff) | |
download | curl-7b4b166718cb01b170668e916d0bad09518eacc1.tar.gz |
added typecasts when converting from unsigned int to int
Diffstat (limited to 'lib/escape.c')
-rw-r--r-- | lib/escape.c | 4 |
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; |