diff options
author | Sivaiah Nallagatla <snallagatla@novell.com> | 2004-03-16 00:30:35 +0800 |
---|---|---|
committer | Sivaiah Nallagatla <siva@src.gnome.org> | 2004-03-16 00:30:35 +0800 |
commit | 1758c9fe42a45391d8d9fa084304fc6d4d054369 (patch) | |
tree | 9e458e23791f9cf08ac2d8b3e4e0f254b5c7ce9f /addressbook/gui | |
parent | 2060bbd57aebf43da04cb3c7e2dafb1780351422 (diff) | |
download | gsoc2013-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.c | 2 |
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; } |