From 92de12317383f25c0f93ae683530cce5024a0ffc Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 21 Jan 2020 10:30:36 -0600 Subject: fixed some signedness warnings and inconsistencies --- uriescape.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'uriescape.c') diff --git a/uriescape.c b/uriescape.c index da3da7e..ccf90cb 100644 --- a/uriescape.c +++ b/uriescape.c @@ -3,11 +3,11 @@ int main(int argc,char *argv[]) { int len; - char *out; + unsigned char *out; if(argc < 2) return 1; - len=uriescapelength(argv[1],strlen(argv[1])); + len=uriescapelength((unsigned char *)argv[1],strlen(argv[1])); out=malloc(len+1); - uriescape(argv[1],out,len); + uriescape((unsigned char *)argv[1],out,len); out[len]=0; printf("%s\n",out); return 0; -- cgit v1.2.3