From ab6f01595d2beec73d2ac6276aa3606a6f5d9f3c Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 21 Jan 2020 10:34:57 -0600 Subject: last commit was an in-progress I failed to notice. it should work now. --- uriunescape.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uriunescape.c b/uriunescape.c index 73ceabd..9543c4c 100644 --- a/uriunescape.c +++ b/uriunescape.c @@ -3,7 +3,7 @@ #include int main(int argc,char *argv[]) { - int i; + int i,j; int len; char doh[2]; @@ -31,7 +31,7 @@ int main(int argc,char *argv[]) { write(1,buf2,len); //we end with a %[single char] buf[0]='%'; - buf[1]=doh; + buf[1]=doh[0]; } } if(!hack) {//we're good. -- cgit v1.2.3