aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libical/ChangeLog6
-rw-r--r--libical/src/libical/icalrecur.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index a287c431b7..8699fe777c 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-23 Damon Chaplin <damon@ximian.com>
+
+ * src/libical/icalrecur.c (icalrecur_two_byrule): use
+ sizeof(test_array) for the memset call. It was clearing 9 bytes but
+ the array uses shorts.
+
2001-10-22 Damon Chaplin <damon@ximian.com>
* zoneinfo/*: updated all files again, placing current RDATEs first,
diff --git a/libical/src/libical/icalrecur.c b/libical/src/libical/icalrecur.c
index 9af9abd8f5..5701e251e5 100644
--- a/libical/src/libical/icalrecur.c
+++ b/libical/src/libical/icalrecur.c
@@ -646,7 +646,7 @@ int icalrecur_two_byrule(struct icalrecur_iterator_impl* impl,
enum byrule itr;
int passes = 0;
- memset(test_array,0,9);
+ memset(test_array,0,sizeof (test_array));
test_array[one] = 1;
test_array[two] = 1;