diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-07-19 08:07:25 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-07-19 08:07:25 +0200 |
commit | a5d2695b8566d9ded46f3fbc4de5cf88d986726c (patch) | |
tree | 138a33dd59aea785712c79e4614da5f554e3f30d | |
parent | 949938fc2f3cd2f252527972e877b7f85b1de339 (diff) | |
download | fbida-a5d2695b8566d9ded46f3fbc4de5cf88d986726c.tar.gz |
fix ps writer gcc7 warning
-rw-r--r-- | wr/write-ps.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |