From: Peter Breitenlohner Date: Fri, 17 Jul 2009 11:12:48 +0000 (+0200) Subject: cal: fix (harmless) typo X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32dec5ac256b982af21cd00c83881b47fe543364;p=util-linux cal: fix (harmless) typo Signed-off-by: Peter Breitenlohner Signed-off-by: Pádraig Brady --- 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: