From ad1691aa33cfc1b1558ce10e93552d0eb1cdcd63 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 10 Jun 2023 17:51:03 +0200 Subject: libio: add desired read size to istream_get_buffered_data This properly maps to all of our use cases and makes istream_precache obsolete. Signed-off-by: David Oberhollenzer --- lib/io/src/get_line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/io/src/get_line.c') diff --git a/lib/io/src/get_line.c b/lib/io/src/get_line.c index a939a6c..94ae9ce 100644 --- a/lib/io/src/get_line.c +++ b/lib/io/src/get_line.c @@ -50,7 +50,7 @@ int istream_get_line(istream_t *strm, char **out, const sqfs_u8 *ptr; int ret; - ret = istream_get_buffered_data(strm, &ptr, &avail); + ret = istream_get_buffered_data(strm, &ptr, &avail, 0); if (ret < 0) goto fail_free; if (ret > 0) { -- cgit v1.2.3