diff options
Diffstat (limited to 'std/io.zig')
| -rw-r--r-- | std/io.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io.zig b/std/io.zig index 44e5634ae0..9c39a02a8c 100644 --- a/std/io.zig +++ b/std/io.zig @@ -513,7 +513,7 @@ pub fn readFileAllocExtra(path: []const u8, allocator: &mem.Allocator, extra_len %defer allocator.free(buf); var adapter = FileInStream.init(&file); - %return adapter.stream.readNoEof(buf); + %return adapter.stream.readNoEof(buf[0..size]); return buf; } |
