Fix invalid use of optind in dirname(1)

This commit is contained in:
sin 2013-10-05 15:08:06 +01:00
parent a8ef54bae1
commit c258d7d0b6

View File

@ -22,7 +22,7 @@ main(int argc, char *argv[])
if(argc < 1)
usage();
puts(dirname(argv[optind]));
puts(dirname(argv[0]));
return 0;
}