From 1f506e4a037e3bf7f6a193fc1cf14e642c392180 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Tue, 23 Oct 2001 21:37:42 +0000 Subject: use sizeof(test_array) for the memset call. It was clearing 9 bytes but 2001-10-23 Damon Chaplin * 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. svn path=/trunk/; revision=13958 --- libical/ChangeLog | 6 ++++++ libical/src/libical/icalrecur.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'libical') 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 + + * 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 * 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; -- cgit v1.2.3