excerpts from my local tree, part 9

tree 1c246cc90b56
parent 5e9dc6a4a60c
author Tamas TEVESZ <[email protected]> 1230276327 -3600
committer Tamas TEVESZ <[email protected]> 1230276327 -3600
revision 1624
branch ice

Fix format strings
diff --git a/wrlib/nxpm.c b/wrlib/nxpm.c
--- a/wrlib/nxpm.c
+++ b/wrlib/nxpm.c
@@ -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) {

-- 
[-]

mkdir /nonexistent


-- 
To unsubscribe, send mail to [email protected].

Reply via email to