aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/ename
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-07 00:30:54 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-07 00:30:54 +0800
commitf7f5a3032f47f7a6bae37607717b9fb6e8c0a26b (patch)
treec8f4f35fd54e59552a385f76d5e7f0429ca13ac6 /e-util/ename
parent2024ff43f5ac563297315bc7a3e890cc3cce2d0a (diff)
downloadgsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.tar.gz
gsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.tar.zst
gsoc2013-evolution-f7f5a3032f47f7a6bae37607717b9fb6e8c0a26b.zip
Made this refuse to parse more than 2047 characters of address.
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. svn path=/trunk/; revision=13484
Diffstat (limited to 'e-util/ename')
-rw-r--r--e-util/ename/e-address-western.c2
1 files changed, 1 insertions, 1 deletions
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. */