From 74a34883df84726ad94359675f3c65a624619dc9 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Fri, 28 Aug 2009 10:49:07 -0400 Subject: Add empathy_make_absolute_url_len to limit the lenght of url string Related to http://bugzilla.gnome.org/show_bug.cgi?id=593207 --- libempathy-gtk/empathy-theme-adium.c | 2 +- libempathy-gtk/empathy-ui-utils.c | 37 ++++++++++++++++++++++++------------ libempathy-gtk/empathy-ui-utils.h | 2 ++ 3 files changed, 28 insertions(+), 13 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c index f557d07bb..d7fd01729 100644 --- a/libempathy-gtk/empathy-theme-adium.c +++ b/libempathy-gtk/empathy-theme-adium.c @@ -328,7 +328,7 @@ theme_adium_parse_body (EmpathyThemeAdium *theme, } /* Append the link inside tag */ - real_url = empathy_make_absolute_url (text + s); + real_url = empathy_make_absolute_url_len (text + s, e - s); g_string_append (string, "