diff options
Diffstat (limited to 'converter/ppm/leaftoppm.c')
-rw-r--r-- | converter/ppm/leaftoppm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/ppm/leaftoppm.c b/converter/ppm/leaftoppm.c index 889400f6..bda44494 100644 --- a/converter/ppm/leaftoppm.c +++ b/converter/ppm/leaftoppm.c @@ -88,9 +88,9 @@ leaf_init(FILE * const fp, for (i=0; i < 256; ++i) PPM_PUTR(colors[i], fgetc(fp)); for (i=0; i < 256; ++i) - PPM_PUTR(colors[i], fgetc(fp)); + PPM_PUTG(colors[i], fgetc(fp)); for (i=0; i < 256; ++i) - PPM_PUTR(colors[i], fgetc(fp)); + PPM_PUTB(colors[i], fgetc(fp)); *ncolorsP = ncolors; } else { /* 24-bit image */ |