aboutsummaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
authorMark Adler <git@madler.net>2026-02-16 18:26:35 -0800
committerMark Adler <git@madler.net>2026-02-16 18:53:00 -0800
commit33e71060aa657e80e87b8d73e9e5cc3dd9be4e8b (patch)
tree88bdec7a6684c15406581b3fcee445e6f2cdb590 /inflate.c
parentd7bc8cafee5bdfde98732622d3b99e2f52f7b2eb (diff)
downloadzlib-33e71060aa657e80e87b8d73e9e5cc3dd9be4e8b.tar.gz
zlib-33e71060aa657e80e87b8d73e9e5cc3dd9be4e8b.tar.bz2
zlib-33e71060aa657e80e87b8d73e9e5cc3dd9be4e8b.zip
Align the backup zmem* functions with their library counterparts.
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) {