Fix format strings

This commit is contained in:
Tamas TEVESZ
2009-08-23 21:10:02 +02:00
committed by Carlos R. Mafra
parent 01dddf00c8
commit f893728d2d
+2 -2
View File
@@ -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) {