prout

smaller "lp" command
git clone git://git.2f30.org/prout.git
Log | Files | Refs | README | LICENSE

commit 29e9c5ae17148c2569f3a5c7119157df2819a17d
parent da608783fd0e650c43aba20a4a40b917ea1e6894
Author: Willy Goiffon <willy@mailoo.org>
Date:   Mon Oct 21 23:36:44 +0200

Fixed argument parsing

Diffstat:
src/prout.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/prout.c b/src/prout.c @@ -160,7 +160,7 @@ int main(int argc, char **argv) exit (1); } - for (i=0; (i+1 < argc) && (argv[i][0] == '-'); i++) { + for (i=1; (i < argc) && (argv[i][0] == '-'); i++) { switch (argv[i][1]) { case 'h': usage(); exit(0); default: usage(); exit(1);