diff options
-rw-r--r-- | usr.bin/objformat/objformat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/objformat/objformat.c b/usr.bin/objformat/objformat.c index 32ed385..8d75f5e 100644 --- a/usr.bin/objformat/objformat.c +++ b/usr.bin/objformat/objformat.c @@ -51,6 +51,10 @@ main(int argc, char **argv) cmd = argv[0]; if (strcmp(cmd, "objformat") == 0) { + if (argc != 1) { + fprintf(stderr, "Usage: objformat\n"); + exit(1); + } printf("%s\n", objformat); exit(0); } |