Commit 40e09c27 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't return VGZ_STUCK if we have emptied the input.

parent 4c3a1f25
...@@ -388,6 +388,8 @@ VGZ_WrwGunzip(struct sess *sp, struct vgz *vg, void *ibuf, ssize_t ibufl, ...@@ -388,6 +388,8 @@ VGZ_WrwGunzip(struct sess *sp, struct vgz *vg, void *ibuf, ssize_t ibufl,
VGZ_Obuf(vg, obuf + *obufp, obufl - *obufp); VGZ_Obuf(vg, obuf + *obufp, obufl - *obufp);
} }
} while (!VGZ_IbufEmpty(vg)); } while (!VGZ_IbufEmpty(vg));
if (i == VGZ_STUCK)
i = VGZ_OK;
return (i); return (i);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment