When matching a day in the month, make sure that the date is still
authormillert <millert@openbsd.org>
Wed, 13 Jul 2016 21:32:01 +0000 (21:32 +0000)
committermillert <millert@openbsd.org>
Wed, 13 Jul 2016 21:32:01 +0000 (21:32 +0000)
commit45cf8591c43d281c4bfe683e7a4a2bb85687dac0
tree14e6f07262012f170f2cca98e90914df02c6f797
parent5586125e6602058ecac077589fade48f0386bd34
When matching a day in the month, make sure that the date is still
in the month we are interested in after calling mktime(3).  This
fixes things like Sunday+5 for months where there is not a 5th
Sunday and the 31st day in months with less than 31 days.
From Andy Bradford
usr.bin/calendar/day.c