Browse Source

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

master
Felix von Leitner 8 months ago
parent
commit
96ea061228
  1. 2
      buffer/bs_skip.c

2
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);
}

Loading…
Cancel
Save