From 93a13274e05a2f0166d8d3ee83ba11b44e50f750 Mon Sep 17 00:00:00 2001 From: leitner Date: Sat, 14 Nov 2020 16:53:54 +0000 Subject: [PATCH] also increment cur in bs_skip if upstream is not a memory buffer --- buffer/bs_skip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buffer/bs_skip.c b/buffer/bs_skip.c index 37fe282..b75801e 100644 --- a/buffer/bs_skip.c +++ b/buffer/bs_skip.c @@ -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); }