Index: wrlib/nxpm.c =================================================================== --- wrlib/nxpm.c +++ wrlib/nxpm.c 2009-05-19 11:53:54.000000000 +0200 @@ -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)); + fputs(index2str(buf, tmpc->index, charsPerPixel), file); } else { - fprintf(file, transp); + fputs(transp, file); } if (a) {