aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/gpm/error-format.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/gpm/error-format.patch')
-rw-r--r--unmaintained/gpm/error-format.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/unmaintained/gpm/error-format.patch b/unmaintained/gpm/error-format.patch
new file mode 100644
index 0000000000..8c9628f492
--- /dev/null
+++ b/unmaintained/gpm/error-format.patch
@@ -0,0 +1,13 @@
+diff --git a/src/lib/report-lib.c b/src/lib/report-lib.c
+index c0ae086..1b9754d 100644
+--- a/src/lib/report-lib.c
++++ b/src/lib/report-lib.c
+@@ -47,7 +47,7 @@ void gpm_report(int line, char *file, int stat, char *text, ... )
+ log_level = LOG_CRIT; break;
+ }
+ #ifdef HAVE_VSYSLOG
+- syslog(log_level, string);
++ syslog(log_level, "%s", string);
+ vsyslog(log_level, text, ap);
+ #else
+ fprintf(stderr,"%s[%s(%d)]:\n",string,file,line);