diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2019-01-06 18:57:01 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2019-01-06 18:57:01 +0000 |
commit | 0c14fd18747b9f6fbbecb75ba8beef6d449c460a (patch) | |
tree | 6c60915cf22ba35f9f4fff0048ebe3a6c073662d /Build/source/texk/web2c/luatexdir/luazlib/lzlib.c | |
parent | 2a4260012f7ef1890dd351aabe4befd60922d5a6 (diff) |
luatex 1.09.2; r-mpost alias of mpost -restricted
git-svn-id: svn://tug.org/texlive/trunk@49614 c570f23f-e606-0410-a88d-b1316a301751
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; } |