summaryrefslogtreecommitdiff
path: root/uriescape.c
diff options
context:
space:
mode:
Diffstat (limited to 'uriescape.c')
-rw-r--r--uriescape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uriescape.c b/uriescape.c
index ccf90cb..2098941 100644
--- a/uriescape.c
+++ b/uriescape.c
@@ -7,7 +7,7 @@ int main(int argc,char *argv[]) {
if(argc < 2) return 1;
len=uriescapelength((unsigned char *)argv[1],strlen(argv[1]));
out=malloc(len+1);
- uriescape((unsigned char *)argv[1],out,len);
+ uriescape((unsigned char *)argv[1],out,strlen(argv[1]));
out[len]=0;
printf("%s\n",out);
return 0;