Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 9b2dede..5c3b58f 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -4784,7 +4784,7 @@ image_save_dialog_response_cb (GtkWidget *fc,
}
extensions = gdk_pixbuf_format_get_extensions (format);
- if (strcmp (extensions[0], uri + strlen (uri) - strlen (extensions[0])) != 0) {
+ if (g_str_has_suffix(uri, extensions[0])) {
gchar *uri_extension;
uri_extension = g_strconcat (uri, ".", extensions[0], NULL);