sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit c258d7d0b607d18cb1fcdbc159ad7b722b474229
parent a8ef54bae11a3d63d2f4f1fbc488af6416644a5d
Author: sin <sin@2f30.org>
Date:   Sat,  5 Oct 2013 15:08:06 +0100

Fix invalid use of optind in dirname(1)

Diffstat:
Mdirname.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dirname.c b/dirname.c @@ -22,7 +22,7 @@ main(int argc, char *argv[]) if(argc < 1) usage(); - puts(dirname(argv[optind])); + puts(dirname(argv[0])); return 0; }