aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gpm/error-format.patch
blob: 8c9628f49222709fc10dd87291cdf17e9228be66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);