diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luazlib/lzlib.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luazlib/lzlib.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luazlib/lzlib.c b/Build/source/texk/web2c/luatexdir/luazlib/lzlib.c index 2de14e3f9e8..2f6f269180e 100644 --- a/Build/source/texk/web2c/luatexdir/luazlib/lzlib.c +++ b/Build/source/texk/web2c/luatexdir/luazlib/lzlib.c @@ -478,23 +478,18 @@ static int lzlib_decompress(lua_State *L) { zs.next_out = (Bytef*)luaL_prepbuffer(&b); zs.avail_out = LUAL_BUFFERSIZE; - /* bake some more */ - ret = inflate(&zs, Z_FINISH); - + ret = inflate(&zs, Z_NO_FLUSH); /* push gathered data */ luaL_addsize(&b, LUAL_BUFFERSIZE - zs.avail_out); - /* need dictionary? - no dictionary support here, so just quit */ if (ret == Z_NEED_DICT) break; - /* done processing? */ if (ret == Z_STREAM_END) break; - /* error condition? */ - if (ret != Z_BUF_ERROR) + if (ret != Z_OK) break; } |