lib/core: fix read_bytes_to_cstring implementation
authorLucas Bajolet <lucas.bajolet@gmail.com>
Thu, 10 May 2018 21:49:47 +0000 (17:49 -0400)
committerLucas Bajolet <lucas.bajolet@gmail.com>
Fri, 11 May 2018 18:37:20 +0000 (14:37 -0400)
commite1860777c47688b1bf7b1be811f1c0264d766200
tree93f7a0b8da5acd1c64e87bc100f17abfe2e90c93
parentfb53c14613d1cd2e16cedf7cc209d14dd63e2615
lib/core: fix read_bytes_to_cstring implementation

When reading bytes from both the lookahead and a source, the lookahead
bytes were not kept in the cstring and we re-written by the
raw_read_bytes after that.

This commit fixes that behaviour.

Signed-off-by: Lucas Bajolet <lucas.bajolet@gmail.com>
lib/core/stream.nit