From a5d2695b8566d9ded46f3fbc4de5cf88d986726c Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 19 Jul 2017 08:07:25 +0200 Subject: fix ps writer gcc7 warning --- wr/write-ps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wr') diff --git a/wr/write-ps.c b/wr/write-ps.c index b1a2877..0303ee6 100644 --- a/wr/write-ps.c +++ b/wr/write-ps.c @@ -60,7 +60,7 @@ static const char *footer = "showpage\n" "end\n" "origstate restore\n" -"%%%%Trailer\n"; +"%%Trailer\n"; /* taken from xwd2ps, ftp://ftp.x.org/R5contrib/xwd2ps.tar.Z */ static const char *ColorImage = @@ -458,7 +458,7 @@ ps_write(FILE *fp, struct ida_image *img) fprintf(fp,"\n"); } } - fprintf(fp,footer); + fprintf(fp, "%s", footer); return 0; } -- cgit