aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorSivaiah Nallagatla <snallagatla@novell.com>2004-03-16 00:30:35 +0800
committerSivaiah Nallagatla <siva@src.gnome.org>2004-03-16 00:30:35 +0800
commit1758c9fe42a45391d8d9fa084304fc6d4d054369 (patch)
tree9e458e23791f9cf08ac2d8b3e4e0f254b5c7ce9f /addressbook
parent2060bbd57aebf43da04cb3c7e2dafb1780351422 (diff)
downloadgsoc2013-evolution-1758c9fe42a45391d8d9fa084304fc6d4d054369.tar
gsoc2013-evolution-1758c9fe42a45391d8d9fa084304fc6d4d054369.tar.gz
gsoc2013-evolution-1758c9fe42a45391d8d9fa084304fc6d4d054369.tar.bz2
gsoc2013-evolution-1758c9fe42a45391d8d9fa084304fc6d4d054369.tar.lz
gsoc2013-evolution-1758c9fe42a45391d8d9fa084304fc6d4d054369.tar.xz
gsoc2013-evolution-1758c9fe42a45391d8d9fa084304fc6d4d054369.tar.zst
gsoc2013-evolution-1758c9fe42a45391d8d9fa084304fc6d4d054369.zip
loop only up to < G_N_ELEMENTS instead of <= G_N_ELEMENTS. Prevents out of
2004-03-14 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (enable_writable_fields) : loop only up to < G_N_ELEMENTS instead of <= G_N_ELEMENTS. Prevents out of bound indexing of addresses array svn path=/trunk/; revision=25073
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index f5339c55fb..b472de0e6b 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-15 Sivaiah Nallagatla <snallagatla@novell.com>
+
+ * gui/contact-editor/e-contact-editor.c (enable_writable_fields) :
+ loop only up to < G_N_ELEMENTS instead of <= G_N_ELEMENTS. Prevents
+ out of bound indexing of addresses array
+
2004-03-15 Hao Sheng <hao.sheng@sun.com>
* gui/component/Makefile.am : build a11y/addressbook dir
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 0b64e0a94e..dd781a0db8 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -3164,7 +3164,7 @@ enable_writable_fields(EContactEditor *editor)
g_hash_table_insert (supported_hash, field, field);
}
- for (i = 0; i <= G_N_ELEMENTS (addresses); i ++) {
+ for (i = 0; i < G_N_ELEMENTS (addresses); i ++) {
if (!strcmp (field, e_contact_field_name (addresses[i]))) {
editor->address_editable [i] = TRUE;
}