Commit c29c3582 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix a really stupid typo: s/ibufl/obufl/

parent feafbe25
......@@ -364,7 +364,10 @@ VGZ_WrwGunzip(struct sess *sp, struct vgz *vg, void *ibuf, ssize_t ibufl,
const void *dp;
CHECK_OBJ_NOTNULL(vg, VGZ_MAGIC);
assert(obufl > 16);
VGZ_Ibuf(vg, ibuf, ibufl);
if (ibufl == 0)
return (VGZ_OK);
VGZ_Obuf(vg, obuf + *obufp, ibufl - *obufp);
do {
if (obufl == *obufp)
......@@ -382,7 +385,7 @@ VGZ_WrwGunzip(struct sess *sp, struct vgz *vg, void *ibuf, ssize_t ibufl,
if (WRW_Flush(sp->wrk))
return (-1);
*obufp = 0;
VGZ_Obuf(vg, obuf + *obufp, ibufl - *obufp);
VGZ_Obuf(vg, obuf + *obufp, obufl - *obufp);
}
} while (!VGZ_IbufEmpty(vg));
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