also increment cur in bs_skip if upstream is not a memory buffer

master
leitner 4 years ago
parent b67a1af443
commit 93a13274e0

@ -19,9 +19,11 @@ size_t bs_skip(struct bytestream* bs, size_t len) {
break;
case IOBUF:
bs->cur += len;
return buffer_seek(bs->u.b, len);
case BSTREAM:
bs->cur += len;
return bs_skip(bs->u.bs, len);
}

Loading…
Cancel
Save