]> spindle.queued.net Git - midori/commitdiff
Don't doublicate the "." in cached filenames
authorEnrico Tröger <enrico.troeger@uvena.de>
Mon, 27 Oct 2008 21:36:41 +0000 (22:36 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 27 Oct 2008 21:36:41 +0000 (22:36 +0100)
katze/katze-net.c

index a46913db997fc66b8f354b9315218265246121ae..efe3b603cedf6f45c6584c1bd8df26dfb83e6a56 100644 (file)
@@ -147,8 +147,8 @@ katze_net_get_cached_path (KatzeNet*    net,
     #endif
 
     extension = g_strrstr (uri, ".");
-    cached_filename = g_strdup_printf ("%s%s%s", checksum,
-        extension ? "." : "", extension ? extension : "");
+    cached_filename = g_strdup_printf ("%s%s", checksum,
+                                       extension ? extension : "");
     g_free (checksum);
     cached_path = g_build_filename (cache_path, cached_filename, NULL);
     g_free (cached_filename);