diff options
author | epoch <epoch@hacking.allowed.org> | 2020-06-01 03:55:51 -0500 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-06-01 03:57:18 -0500 |
commit | 5aa8ec238c46f1961dbd9541d0067d60e2f18c28 (patch) | |
tree | ff4b63d51bd5cbad8a947d418af00158dc5b8515 /uriescape.c | |
parent | 39eac44f867024563448d0b606af851dff8aa35f (diff) | |
download | uritools-5aa8ec238c46f1961dbd9541d0067d60e2f18c28.tar.gz uritools-5aa8ec238c46f1961dbd9541d0067d60e2f18c28.zip |
added query_param script. fixed a really dumb bug in uriescape
Diffstat (limited to 'uriescape.c')
-rw-r--r-- | uriescape.c | 2 |
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; |