From 14be589bba72db8a649a88f34234bf8af9170de2 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 25 Apr 2010 23:45:44 -0400 Subject: Fix a potential crasher in e_contact_quick_add_email(). --- addressbook/gui/contact-editor/e-contact-quick-add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addressbook') diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index d10ceeac6f..6a8a5fd19d 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -606,7 +606,7 @@ e_contact_quick_add_email (const gchar *email, EContactQuickAddCallback cb, gpoi name = g_strndup (email, lt - email); addr = g_strndup (lt + 1, gt - lt - 1); } else { - addr = email; + addr = g_strdup (email); } e_contact_quick_add (name, addr, cb, closure); -- cgit