diff --git a/gtk/encodesymbolic.c b/gtk/encodesymbolic.c index 42e8d9c936..e6d01dd5c2 100644 --- a/gtk/encodesymbolic.c +++ b/gtk/encodesymbolic.c @@ -282,7 +282,7 @@ main (int argc, char **argv) basename = g_path_get_basename (path); - dot = strchr(basename, '.'); + dot = strrchr (basename, '.'); if (dot != NULL) *dot = 0; pngfile = g_strconcat (basename, ".symbolic.png", NULL);