[hackers] [sbase] Fix invalid use of optind in dirname(1) || sin
commit c258d7d0b607d18cb1fcdbc159ad7b722b474229
Author: sin <sin_AT_2f30.org>
Date: Sat Oct 5 15:08:06 2013 +0100
Fix invalid use of optind in dirname(1)
diff --git a/dirname.c b/dirname.c
index 431291a..0321078 100644
--- a/dirname.c
+++ b/dirname.c
_AT_@ -22,7 +22,7 @@ main(int argc, char *argv[])
if(argc < 1)
usage();
- puts(dirname(argv[optind]));
+ puts(dirname(argv[0]));
return 0;
}
Received on Sat Oct 05 2013 - 16:29:55 CEST
This archive was generated by hypermail 2.3.0
: Sat Oct 05 2013 - 16:37:07 CEST