mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-04 21:04:18 +01:00
Fix format strings
This commit is contained in:
committed by
Carlos R. Mafra
parent
01dddf00c8
commit
f893728d2d
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user