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 /libical/src | |
parent | 1451bdffda8a87d6053519ab868ff778d7fb0e01 (diff) | |
download | gsoc2013-evolution-1f506e4a037e3bf7f6a193fc1cf14e642c392180.tar gsoc2013-evolution-1f506e4a037e3bf7f6a193fc1cf14e642c392180.tar.gz gsoc2013-evolution-1f506e4a037e3bf7f6a193fc1cf14e642c392180.tar.bz2 gsoc2013-evolution-1f506e4a037e3bf7f6a193fc1cf14e642c392180.tar.lz gsoc2013-evolution-1f506e4a037e3bf7f6a193fc1cf14e642c392180.tar.xz 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
Diffstat (limited to 'libical/src')
-rw-r--r-- | libical/src/libical/icalrecur.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |