summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/pixmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c
index 37258b1a..a7d26b17 100644
--- a/source/fitz/pixmap.c
+++ b/source/fitz/pixmap.c
@@ -691,7 +691,7 @@ fz_write_pam_header(fz_context *ctx, fz_output *out, int w, int h, int n, int sa
void
fz_write_pam_band(fz_context *ctx, fz_output *out, int w, int h, int n, int band, int bandheight, unsigned char *sp, int savealpha)
{
- int y, x, k;
+ int y, x;
int start = band * bandheight;
int end = start + bandheight;
int sn = n;
@@ -708,8 +708,7 @@ fz_write_pam_band(fz_context *ctx, fz_output *out, int w, int h, int n, int band
x = w;
while (x--)
{
- for (k = 0; k < dn; k++)
- fz_putc(ctx, out, sp[k]);
+ fz_write(ctx, out, sp, dn);
sp += sn;
}
}