From 5aa8ec238c46f1961dbd9541d0067d60e2f18c28 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 1 Jun 2020 03:55:51 -0500 Subject: added query_param script. fixed a really dumb bug in uriescape --- uriescape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uriescape.c') 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; -- cgit v1.2.3