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 Mar 30, 2021
1 parent f7e0d7f commit aacdba7
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 aacdba7

Please sign in to comment.