summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/fitz/output.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/fitz/output.c b/source/fitz/output.c
index 6f4b0b84..74f32344 100644
--- a/source/fitz/output.c
+++ b/source/fitz/output.c
@@ -381,15 +381,12 @@ fz_write_byte(fz_context *ctx, fz_output *out, unsigned char x)
{
if (out->bp)
{
- if (out->wp < out->ep)
- {
- *out->wp++ = x;
- }
- else
+ if (out->wp == out->ep)
{
out->write(ctx, out->state, out->bp, out->wp - out->bp);
out->wp = out->bp;
}
+ *out->wp++ = x;
}
else
{