From de9e582ab12b61bec612c29287cf99f54ead370c Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Thu, 10 May 2012 16:23:56 -0400 Subject: [PATCH] * #10778: calltree: fix trailing > character when making call from history --- gnome/src/contacts/calltree.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnome/src/contacts/calltree.c b/gnome/src/contacts/calltree.c index 666a65868a..ff37860a51 100644 --- a/gnome/src/contacts/calltree.c +++ b/gnome/src/contacts/calltree.c @@ -372,6 +372,10 @@ static gchar *clean_display_number(gchar *name) name += (sizeof(SIP_PREFIX) - 1); else if (g_str_has_prefix(name, SIPS_PREFIX)) name += (sizeof(SIPS_PREFIX) - 1); + + gchar * pos = g_strrstr(name, ">"); + if (pos) + *pos = '\0'; return name; } @@ -391,7 +395,8 @@ calltree_display_call_info(callable_obj_t * c, CallDisplayType display_type, con } // Different display depending on type - gchar *name, *details = NULL; + gchar *name = NULL; + gchar *details = NULL; if (*c->_display_name) { name = c->_display_name; -- GitLab