diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-02 21:55:18 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-02 21:55:18 +0800 |
commit | 1f42dd58510c9ba39863242c6da2d9d8fe024c1c (patch) | |
tree | 19124c5ab8f06bbb9283e2552c5ea94bca50ccd7 | |
parent | f6be515182c311c81b108d992597dc66aa401227 (diff) | |
download | gsoc2013-evolution-1f42dd58510c9ba39863242c6da2d9d8fe024c1c.tar.gz gsoc2013-evolution-1f42dd58510c9ba39863242c6da2d9d8fe024c1c.tar.zst gsoc2013-evolution-1f42dd58510c9ba39863242c6da2d9d8fe024c1c.zip |
Made the max length of the textification be 2047 characters. Fixes Ximian
2001-10-02 Christopher James Lahey <clahey@ximian.com>
* gui/component/select-names/e-select-names-model.c
(e_select_names_model_get_textification): Made the max length of
the textification be 2047 characters. Fixes Ximian bug #3021.
svn path=/trunk/; revision=13299
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-model.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 7824dc0a57..69351c3c66 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2001-10-02 Christopher James Lahey <clahey@ximian.com> + + * gui/component/select-names/e-select-names-model.c + (e_select_names_model_get_textification): Made the max length of + the textification be 2047 characters. Fixes Ximian bug #3021. + 2001-10-01 JP Rosevear <jpr@ximian.com> * conduit/address-conduit.c (ecard_from_remote_record): if there diff --git a/addressbook/gui/component/select-names/e-select-names-model.c b/addressbook/gui/component/select-names/e-select-names-model.c index 89838f9b82..138b0d73ad 100644 --- a/addressbook/gui/component/select-names/e-select-names-model.c +++ b/addressbook/gui/component/select-names/e-select-names-model.c @@ -23,6 +23,8 @@ #define SEPARATOR ", " #define SEPLEN (strlen(SEPARATOR)) +#define MAX_LENGTH 2047 + enum { E_SELECT_NAMES_MODEL_CHANGED, @@ -287,6 +289,11 @@ e_select_names_model_get_textification (ESelectNamesModel *model) } model->priv->text = g_strjoinv (SEPARATOR, strv); + + if (strlen(model->priv->text) > MAX_LENGTH) { + model->priv->text[MAX_LENGTH] = 0; + g_realloc (model->priv->text, MAX_LENGTH + 1); + } g_free (strv); } |