summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-03-16 11:01:07 +0100
committerLuke from DC <[email protected]>2022-03-23 04:47:09 +0000
commit2083f5e465facf28fe8fa9246ae4d2fe17d3fe10 (patch)
treee3812e35f03176ed35ee3d8c7da9146e8d5d2951
parentd10b694e96758b221b03f3ac9e0f42ec75b02fb1 (diff)
downloadmate-media-2083f5e465facf28fe8fa9246ae4d2fe17d3fe10.tar.bz2
mate-media-2083f5e465facf28fe8fa9246ae4d2fe17d3fe10.tar.xz
sound-theme-file-utils: fix build warning -Wformat-nonliteral
-rw-r--r--mate-volume-control/sound-theme-file-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mate-volume-control/sound-theme-file-utils.c b/mate-volume-control/sound-theme-file-utils.c
index a541767..df06be7 100644
--- a/mate-volume-control/sound-theme-file-utils.c
+++ b/mate-volume-control/sound-theme-file-utils.c
@@ -187,12 +187,12 @@ custom_theme_dir_is_empty (void)
}
static void
-delete_one_file (const char *sound_name, const char *pattern)
+delete_one_file (const char *sound_name, const char *file_extension)
{
GFile *file;
char *name, *filename;
- name = g_strdup_printf (pattern, sound_name);
+ name = g_strconcat (sound_name, file_extension, NULL);
filename = custom_theme_dir_path (name);
g_free (name);
file = g_file_new_for_path (filename);
@@ -207,7 +207,7 @@ delete_old_files (const char **sounds)
guint i;
for (i = 0; sounds[i] != NULL; i++) {
- delete_one_file (sounds[i], "%s.ogg");
+ delete_one_file (sounds[i], ".ogg");
}
}
@@ -217,7 +217,7 @@ delete_disabled_files (const char **sounds)
guint i;
for (i = 0; sounds[i] != NULL; i++)
- delete_one_file (sounds[i], "%s.disabled");
+ delete_one_file (sounds[i], ".disabled");
}
static void