diff options
author | Damon Chaplin <damon@ximian.com> | 2001-10-24 05:37:42 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-10-24 05:37:42 +0800 |
commit | 1f506e4a037e3bf7f6a193fc1cf14e642c392180 (patch) | |
tree | 00071bea495d6f6a504e02c46f1c84fd8c4fa87a | |
parent | 1451bdffda8a87d6053519ab868ff778d7fb0e01 (diff) | |
download | gsoc2013-evolution-1f506e4a037e3bf7f6a193fc1cf14e642c392180.tar.gz gsoc2013-evolution-1f506e4a037e3bf7f6a193fc1cf14e642c392180.tar.zst gsoc2013-evolution-1f506e4a037e3bf7f6a193fc1cf14e642c392180.zip |
use sizeof(test_array) for the memset call. It was clearing 9 bytes but
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.
svn path=/trunk/; revision=13958
-rw-r--r-- | libical/ChangeLog | 6 | ||||
-rw-r--r-- | libical/src/libical/icalrecur.c | 2 |
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; |