mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-20 22:11:11 +02:00
17 lines
534 B
Diff
17 lines
534 B
Diff
Adapted from test/example.c diff of https://github.com/madler/zlib/commit/0d36ec4
|
|
|
|
--- a/src/modules/Gz/gz_test.c
|
|
+++ b/src/modules/Gz/gz_test.c
|
|
@@ -321,9 +321,8 @@
|
|
CHECK_ERR(err, "inflateSync");
|
|
|
|
err = inflate(&d_stream, Z_FINISH);
|
|
- if (err != Z_DATA_ERROR) {
|
|
- fprintf(stderr, "inflate should report DATA_ERROR\n");
|
|
- /* Because of incorrect adler32 */
|
|
+ if (err != Z_STREAM_END) {
|
|
+ fprintf(stderr, "inflate should report Z_STREAM_END\n");
|
|
exit(1);
|
|
}
|
|
err = inflateEnd(&d_stream);
|