From f3af1983ed855b9e23f8b1c7c3859220a0915c30 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 18 Mar 2012 08:39:14 +0100 Subject: [PATCH] Don't modify const gchar* in midori_view_get_uri_extension Fixes: https://bugs.launchpad.net/midori/+bug/957678 --- midori/midori-view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.39.5