Package: dopewars / 1.5.12-19

src_sound.c_format.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix formatting so it can build cleanly with -Werror=format-security set.
Author: Julian Taylor

--- a/src/sound.c
+++ b/src/sound.c
@@ -190,7 +190,7 @@
       err = g_strdup_printf(_("Invalid plugin \"%s\" selected.\n"
                               "(%s available; now using \"%s\".)"),
                             drivername, plugins, NOPLUGIN);
-      g_log(NULL, G_LOG_LEVEL_CRITICAL, err);
+      g_log(NULL, G_LOG_LEVEL_CRITICAL, "%s", err);
       g_free(plugins);
       g_free(err);
     }