Skip to content

Commit

Permalink
AVRO-2955: Fix z_stream buffer pointer assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyolee committed May 3, 2021
1 parent 55a8fae commit c07f44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/c/src/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static int decode_deflate(avro_codec_t c, void * data, int64_t len)
if (err == Z_BUF_ERROR)
{
c->block_data = avro_realloc(c->block_data, c->block_size, c->block_size * 2);
s->next_out = c->block_data + s->total_out;
s->next_out = (Bytef*) c->block_data + s->total_out;
s->avail_out += c->block_size;
c->block_size = c->block_size * 2;
}
Expand Down

0 comments on commit c07f44d

Please sign in to comment.