aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
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/gui
parent2060bbd57aebf43da04cb3c7e2dafb1780351422 (diff)
downloadgsoc2013-evolution-1758c9fe42a45391d8d9fa084304fc6d4d054369.tar.gz
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/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c2
1 files changed, 1 insertions, 1 deletions
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;
}