From 89601b8e39f93a6467a185d858d106bb38d44e71 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 20 Feb 2011 13:21:17 +0100 Subject: [PATCH] scriptreplay: bug in argument check Number of arguments cannot be at the same time too many and few. Signed-off-by: Sami Kerola --- misc-utils/scriptreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/scriptreplay.c b/misc-utils/scriptreplay.c index f8ee9e011c..992e949f90 100644 --- a/misc-utils/scriptreplay.c +++ b/misc-utils/scriptreplay.c @@ -133,7 +133,7 @@ main(int argc, char *argv[]) bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - if (argc < 2 && argc > 4) + if (argc < 2 || 4 < argc) usage(EXIT_FAILURE); tname = argv[1]; -- 2.47.3