aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-10-24 06:19:05 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-10-24 06:19:05 +0800
commit974cb91595b7eccc118ff8c807d1ecb60b0e217f (patch)
treedde4245c2e6a30160f705bdb2444a0e305027531
parent36894c7adc651818c95bf32ce82d13b3d15e2295 (diff)
downloadgsoc2013-evolution-974cb91595b7eccc118ff8c807d1ecb60b0e217f.tar
gsoc2013-evolution-974cb91595b7eccc118ff8c807d1ecb60b0e217f.tar.gz
gsoc2013-evolution-974cb91595b7eccc118ff8c807d1ecb60b0e217f.tar.bz2
gsoc2013-evolution-974cb91595b7eccc118ff8c807d1ecb60b0e217f.tar.lz
gsoc2013-evolution-974cb91595b7eccc118ff8c807d1ecb60b0e217f.tar.xz
gsoc2013-evolution-974cb91595b7eccc118ff8c807d1ecb60b0e217f.tar.zst
gsoc2013-evolution-974cb91595b7eccc118ff8c807d1ecb60b0e217f.zip
copy the translate field over as well. Should fix an uninitialized memory
2001-10-23 Damon Chaplin <damon@ximian.com> * e-search-bar.c (copy_subitems): copy the translate field over as well. Should fix an uninitialized memory read. svn path=/trunk/; revision=13964
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-search-bar.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 2f061b66f1..4af10fff08 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,5 +1,10 @@
2001-10-23 Damon Chaplin <damon@ximian.com>
+ * e-search-bar.c (copy_subitems): copy the translate field over as
+ well. Should fix an uninitialized memory read.
+
+2001-10-23 Damon Chaplin <damon@ximian.com>
+
* e-dateedit.c (e_date_edit_check_date_changed):
(e_date_edit_check_time_changed): clear the struct tm fields to keep
purify happy.
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 495bc93afb..73e022cef9 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -282,6 +282,7 @@ copy_subitems (ESearchBarSubitem *subitems)
for (i=0; i<N; ++i) {
copy[i].text = g_strdup (subitems[i].text);
copy[i].id = subitems[i].id;
+ copy[i].translate = subitems[i].translate;
}
copy[N].text = NULL;