From d1a03a7d97f934a1f4cb8f23940403a4c9415ecd 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