File: src_sound.c_format.patch

package info (click to toggle)
dopewars 1.5.12-19
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 7,028 kB
  • sloc: ansic: 31,614; sh: 8,577; makefile: 470; yacc: 318
file content (14 lines) | stat: -rw-r--r-- 513 bytes parent folder | download | duplicates (4)
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);
     }