diff options
Diffstat (limited to 'mbbsd/calendar.c')
-rw-r--r-- | mbbsd/calendar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/calendar.c b/mbbsd/calendar.c index 5a398b3d..f3777aab 100644 --- a/mbbsd/calendar.c +++ b/mbbsd/calendar.c @@ -53,7 +53,7 @@ ParseDate(char *date, event_t * t) t->month = atoi(m); t->day = atoi(d); if (t->year < 1 || t->month < 1 || t->month > 12 || - t->day < 1 || t->day > 31) + t->day < 1 || t->day > MonthDay(t->month, IsLeap(t->y))) return 1; t->days = Days(t->year, t->month, t->day); return 0; |