From ebe0b8697bca69abb7e7be1c731da4d54b10e462 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 3 Aug 2024 12:31:51 -0400 Subject: Fix reading chunks from files without trailing newlines --- src/byte_source.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/byte_source.h') diff --git a/src/byte_source.h b/src/byte_source.h index bd6701c9..afd9ccb9 100644 --- a/src/byte_source.h +++ b/src/byte_source.h @@ -83,7 +83,7 @@ serd_byte_source_advance(SerdByteSource* source) if (source->page_size > 1) { if (++source->read_head == source->page_size) { st = serd_byte_source_page(source); - } else if (source->read_head == source->buf_size) { + } else if (source->read_head >= source->buf_size) { source->eof = true; } } else { -- cgit v1.2.1