diff --git a/core/bytes/buffer.odin b/core/bytes/buffer.odin index 4208b0d46..0399beea4 100644 --- a/core/bytes/buffer.odin +++ b/core/bytes/buffer.odin @@ -419,7 +419,7 @@ _buffer_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte, offse n, err = buffer_seek(b, offset, whence) return case .Size: - n = i64(buffer_capacity(b)) + n = i64(buffer_length(b)) return case .Destroy: buffer_destroy(b)