From 32dec5ac256b982af21cd00c83881b47fe543364 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Fri, 17 Jul 2009 13:12:48 +0200 Subject: [PATCH] cal: fix (harmless) typo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Breitenlohner Signed-off-by: Pádraig Brady --- misc-utils/cal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/cal.c b/misc-utils/cal.c index a8534b8c..3e38f8ed 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -354,7 +354,7 @@ main(int argc, char **argv) { day = month = year = 0; switch(argc) { case 3: - if ((day = atoi(*argv++)) < 1 || month > 31) + if ((day = atoi(*argv++)) < 1 || day > 31) errx(1, _("illegal day value: use 1-%d"), 31); /* FALLTHROUGH */ case 2: -- 2.39.5