mirror of
https://github.com/curl/curl.git
synced 2026-07-26 09:07:16 +03:00
added typecasts when converting from unsigned int to int
This commit is contained in:
parent
e32641d412
commit
7b4b166718
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue