Skip to content

Commit 102b68f

Browse files
committed
AVRO-2955: Fix z_stream buffer pointer assignment.
1 parent a047043 commit 102b68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lang/c/src/codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static int decode_deflate(avro_codec_t c, void * data, int64_t len)
340340
if (err == Z_BUF_ERROR)
341341
{
342342
c->block_data = avro_realloc(c->block_data, c->block_size, c->block_size * 2);
343-
s->next_out = c->block_data + s->total_out;
343+
s->next_out = (Bytef*) c->block_data + s->total_out;
344344
s->avail_out += c->block_size;
345345
c->block_size = c->block_size * 2;
346346
}

0 commit comments

Comments
 (0)