summaryrefslogtreecommitdiff
path: root/source/fitz/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/buffer.c')
-rw-r--r--source/fitz/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/buffer.c b/source/fitz/buffer.c
index 12de453a..df0163f5 100644
--- a/source/fitz/buffer.c
+++ b/source/fitz/buffer.c
@@ -361,7 +361,7 @@ fz_test_buffer_write(fz_context *ctx)
k = (rand() & 31)+1;
if (k > j)
k = j;
- fz_write_buffer_bits(ctx, copy, fz_read_bits(stm, k), k);
+ fz_write_buffer_bits(ctx, copy, fz_read_bits(ctx, stm, k), k);
j -= k;
}
while (j);