aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/component/select-names/e-select-names-model.c7
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);
}