From: Christian Dywan Date: Sun, 18 Mar 2012 07:39:14 +0000 (+0100) Subject: Don't modify const gchar* in midori_view_get_uri_extension X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3af1983ed855b9e23f8b1c7c3859220a0915c30;p=midori Don't modify const gchar* in midori_view_get_uri_extension Fixes: https://bugs.launchpad.net/midori/+bug/957678 --- diff --git a/midori/midori-view.c b/midori/midori-view.c index f038ca7b..670a3592 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -5131,7 +5131,7 @@ midori_view_can_save (MidoriView* view) return FALSE; } -static gchar* +/* static */ gchar* midori_view_get_uri_extension (const gchar* uri) { gchar* slash; @@ -5160,7 +5160,6 @@ midori_view_get_uri_extension (const gchar* uri) while (*ext_end && g_ascii_isalnum (*ext_end)) ext_end++; - *ext_end = 0; return g_strdup (period); }