Audit dirname(1)

Be stricter about the number of arguments passed to it.
This commit is contained in:
FRIGN
2015-02-28 19:50:12 +01:00
parent cb610b2c7b
commit e45297a320
3 changed files with 5 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ main(int argc, char *argv[])
usage();
} ARGEND;
if (argc < 1)
if (argc != 1)
usage();
puts(dirname(argv[0]));