diff options
author | Ken Murchison <murch@fastmail.com> | 2020-11-15 10:38:35 -0500 |
---|---|---|
committer | Ken Murchison <murch@fastmail.com> | 2020-11-15 10:39:59 -0500 |
commit | 36b2e53ae1b5e7294462da88baa892801abe2fdd (patch) | |
tree | eeb1f0e088cde2f24ae0c054a9dbbc63be46be0e | |
parent | 116e4de02314b78feb59ad8391cb1c4990a8f55a (diff) | |
download | libical-git-36b2e53ae1b5e7294462da88baa892801abe2fdd.tar.gz |
icalrcur.c: don't run past the end of the year if we start with weekno > 1
-rw-r--r-- | src/libical/icalrecur.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libical/icalrecur.c b/src/libical/icalrecur.c index 68442dec..1c46091a 100644 --- a/src/libical/icalrecur.c +++ b/src/libical/icalrecur.c @@ -2688,7 +2688,7 @@ static int expand_year_days(icalrecur_iterator *impl, int year) /* Set start and end of ISO week-numbering year */ doy_offset += get_start_of_week(impl) - 1; - last_day = (7 * weeks_in_year(year)); + last_day = (7 * weeks_in_year(year)) - doy_offset - 1; first_dow = impl->rule.week_start; last_dow = (first_dow + 6) % 7; |