From 2863ed85e74edaff40aef16d0e91c98e430c1060 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Tue, 12 May 2015 03:34:00 -0500 Subject: added a really slow shell implementation of grepurl. fixed cuturl when no arguments were given. would eat argv[0] as an argument. :/ --- src/bin/cuturl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bin/cuturl.c b/src/bin/cuturl.c index 40b7766..7451a27 100644 --- a/src/bin/cuturl.c +++ b/src/bin/cuturl.c @@ -58,9 +58,9 @@ int main(int argc,char *argv[]) { printf("To set default values use environment variables like: CUTURL_[OPTION]\n"); return 2; } - argc--; - argv++; } + argv++; + argc--; while(1) { scheme=0; username=0; -- cgit v1.2.3