diff --git a/core/bytes/buffer.odin b/core/bytes/buffer.odin index f46fb826a..995068aad 100644 --- a/core/bytes/buffer.odin +++ b/core/bytes/buffer.odin @@ -249,7 +249,7 @@ buffer_read_at :: proc(b: ^Buffer, p: []byte, offset: int) -> (n: int, err: io.E b.last_read = .Invalid if uint(offset) >= len(b.buf) { - err = .Invalid_Offset + err = .EOF return } n = copy(p, b.buf[offset:])