aboutsummaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inflate.c b/inflate.c
index 6baa4dfe..91c01f99 100644
--- a/inflate.c
+++ b/inflate.c
@@ -1351,8 +1351,8 @@ int ZEXPORT inflateCopy(z_streamp dest, z_streamp source) {
1351 } 1351 }
1352 1352
1353 /* copy state */ 1353 /* copy state */
1354 zmemcpy((voidpf)dest, (voidpf)source, sizeof(z_stream)); 1354 zmemcpy(dest, source, sizeof(z_stream));
1355 zmemcpy((voidpf)copy, (voidpf)state, sizeof(struct inflate_state)); 1355 zmemcpy(copy, state, sizeof(struct inflate_state));
1356 copy->strm = dest; 1356 copy->strm = dest;
1357 if (state->lencode >= state->codes && 1357 if (state->lencode >= state->codes &&
1358 state->lencode <= state->codes + ENOUGH - 1) { 1358 state->lencode <= state->codes + ENOUGH - 1) {