summaryrefslogtreecommitdiff
path: root/WindowMaker-format.patch
diff options
context:
space:
mode:
Diffstat (limited to 'WindowMaker-format.patch')
-rw-r--r--WindowMaker-format.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/WindowMaker-format.patch b/WindowMaker-format.patch
new file mode 100644
index 0000000..a6ac461
--- /dev/null
+++ b/WindowMaker-format.patch
@@ -0,0 +1,14 @@
+--- WindowMaker-0.92.0/wrlib/nxpm.c~ 2004-10-12 20:21:53.000000000 +0200
++++ WindowMaker-0.92.0/wrlib/nxpm.c 2013-11-07 13:40:23.762829654 +0100
+@@ -644,9 +644,9 @@
+ 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) {