summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2008-12-21 21:34:28 +0100
committerAlbert Astals Cid <aacid@kde.org>2008-12-21 22:09:56 +0100
commita8cc4ad8c2da804f25db8cca1c85433d5a63307c (patch)
tree7773b342047dee1a05a310e0810c34c9911beace
parent3cbbf8226730aa7ee6273e154e4a9d58670a3cda (diff)
Fix compile warning on format not a string literal
-rw-r--r--test/perf-test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/perf-test.cc b/test/perf-test.cc
index a9fa50b1..135ed345 100644
--- a/test/perf-test.cc
+++ b/test/perf-test.cc
@@ -1,4 +1,5 @@
/* Copyright Krzysztof Kowalczyk 2006-2007
+ Copyright Hib Eris <hib@hiberis.nl> 2008
License: GPLv2 */
/*
A tool to stress-test poppler rendering and measure rendering times for
@@ -802,7 +803,7 @@ void LogInfo(char *fmt, ...)
va_start(args, fmt);
p += _vsnprintf(p, sizeof(buf) - 1, fmt, args);
*p = '\0';
- fprintf(gOutFile, buf);
+ fprintf(gOutFile, "%s", buf);
va_end(args);
fflush(gOutFile);
}