summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-06-09 23:23:44 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2014-06-09 23:23:44 +0200
commita02d59bf60cfccdb784850d98871a0c90e24bd64 (patch)
tree52dfe4a60123a575411598d761e6cbf51c9df55d /src
parent0fa27ea9841ce82b8e24fa0ea2975be2ca1137a4 (diff)
fix -Werror=format-security build
submitted-by: Filipe Rosset
Diffstat (limited to 'src')
-rw-r--r--src/Postscript.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Postscript.cxx b/src/Postscript.cxx
index c698030..64ebeb7 100644
--- a/src/Postscript.cxx
+++ b/src/Postscript.cxx
@@ -311,7 +311,7 @@ void PSWriter::write_main_block(FILE *out) {
tag_format = PS_TAG_FORMAT;
fprintf(out, "\n");
- fprintf(out, ps_header());
+ fprintf(out, "%s", ps_header());
for (int i = 1; i<pse->get_max_pages(); i++) {
if (pse->get_text(i)) {
@@ -321,7 +321,7 @@ void PSWriter::write_main_block(FILE *out) {
}
}
- fprintf(out, ps_trailer());
+ fprintf(out, "%s", ps_trailer());
fprintf(out, "\n");
fprintf(out, "%s", PSEDIT_END);
fprintf(out, "\n");