From f893728d2da0db48abb0e3cd14260449537b80eb Mon Sep 17 00:00:00 2001 From: Tamas TEVESZ Date: Fri, 26 Dec 2008 08:38:18 +0100 Subject: [PATCH] Fix format strings --- wrlib/nxpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrlib/nxpm.c b/wrlib/nxpm.c index d0c6202f..4aa45d53 100644 --- a/wrlib/nxpm.c +++ b/wrlib/nxpm.c @@ -642,9 +642,9 @@ Bool RSaveXPM(RImage * image, char *filename) if (!a || *a > 127) { tmpc = lookfor(colormap, (unsigned)*r << 16 | (unsigned)*g << 8 | (unsigned)*b); - fprintf(file, index2str(buf, tmpc->index, charsPerPixel)); + fprintf(file, "%s", index2str(buf, tmpc->index, charsPerPixel)); } else { - fprintf(file, transp); + fprintf(file, "%s", transp); } if (a) {