aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-14 08:20:17 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-14 08:20:17 +0000
commit7b4b166718cb01b170668e916d0bad09518eacc1 (patch)
treed588b98af3d7e6a9c9f29e44760176d39d07c52d /lib
parente32641d412b82f3bbc42b5a6a454ec5c143588c5 (diff)
added typecasts when converting from unsigned int to int
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;