Skip to content

Commit

Permalink
Set lencode and distcode symmetrically
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Aug 28, 2024
1 parent 545f194 commit 68370a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ int ZEXPORT inflate(z_streamp strm, int flush) {
while (state->have < 19)
state->lens[order[state->have++]] = 0;
state->next = state->codes;
state->lencode = (const code FAR *)(state->next);
state->lencode = state->distcode = (const code FAR *)(state->next);
state->lenbits = 7;
ret = inflate_table(CODES, state->lens, 19, &(state->next),
&(state->lenbits), state->work);
Expand Down

0 comments on commit 68370a6

Please sign in to comment.