]> err.no Git - util-linux/commitdiff
cal: fix (harmless) typo
authorPeter Breitenlohner <peb@mppmu.mpg.de>
Fri, 17 Jul 2009 11:12:48 +0000 (13:12 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Jul 2009 13:33:44 +0000 (15:33 +0200)
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Pádraig Brady <P@draigBrady.com>
misc-utils/cal.c

index a8534b8ca9e890ea9cc048fb987b0e0503ed045d..3e38f8ed7a4424fdd140df221697176b8cebb258 100644 (file)
@@ -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: