diff options
author | David Robillard <d@drobilla.net> | 2024-08-03 12:31:51 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-08-03 14:21:47 -0400 |
commit | ebe0b8697bca69abb7e7be1c731da4d54b10e462 (patch) | |
tree | 73f5b777ab632b2001a132eea82cd97499f330fa /src/byte_source.h | |
parent | f73aae2f97d1faa8e41a8b8627e1e186a1f900f4 (diff) | |
download | serd-ebe0b8697bca69abb7e7be1c731da4d54b10e462.tar.gz serd-ebe0b8697bca69abb7e7be1c731da4d54b10e462.tar.bz2 serd-ebe0b8697bca69abb7e7be1c731da4d54b10e462.zip |
Fix reading chunks from files without trailing newlines
Diffstat (limited to 'src/byte_source.h')
-rw-r--r-- | src/byte_source.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |