summaryrefslogtreecommitdiffstats
path: root/qacp.c
diff options
context:
space:
mode:
Diffstat (limited to 'qacp.c')
-rw-r--r--qacp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qacp.c b/qacp.c
index d91be9c..2c39c96 100644
--- a/qacp.c
+++ b/qacp.c
@@ -641,7 +641,7 @@ main(int argc, char *argv[])
}
}
- if (argv[optind] == NULL) {
+ if (argv[optind] == NULL || (argc - optind < 2)) {
usage();
exit(2);
}