mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
added typecasts when converting from unsigned int to int
This commit is contained in:
parent
e32641d412
commit
7b4b166718
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
char *curl_escape(char *string, int length)
|
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);
|
char *ns = malloc(alloc);
|
||||||
unsigned char in;
|
unsigned char in;
|
||||||
int newlen = alloc;
|
int newlen = alloc;
|
||||||
@ -77,7 +77,7 @@ char *curl_escape(char *string, int length)
|
|||||||
|
|
||||||
char *curl_unescape(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);
|
char *ns = malloc(alloc);
|
||||||
unsigned char in;
|
unsigned char in;
|
||||||
int index=0;
|
int index=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user