aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/ename/e-address-western.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 258477a117..6de73344ba 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-06 Christopher James Lahey <clahey@ximian.com>
+
+ * ename/e-address-western.c (e_address_western_parse): Made this
+ refuse to parse more than 2047 characters of address.
+
2001-10-04 Dan Winship <danw@ximian.com>
* e-passwords.c (e_passwords_add_password): Make this dup the
diff --git a/e-util/ename/e-address-western.c b/e-util/ename/e-address-western.c
index 88b501497e..f2200a9dba 100644
--- a/e-util/ename/e-address-western.c
+++ b/e-util/ename/e-address-western.c
@@ -326,7 +326,7 @@ e_address_western_parse (const gchar *in_address)
eaw->postal_code = NULL;
eaw->country = NULL;
- address = g_strdup (in_address);
+ address = g_strndup (in_address, 2047);
/* The first thing I'll do is divide the multiline input string
into lines. */