diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-08-24 12:59:31 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-08-24 12:59:31 -0400 |
| commit | 6b31b178a6c6ca703211eeffa49167bfc4e0cdd4 (patch) | |
| tree | d01861e06e19c0771cd3ae0414c0277e5c45636f /std | |
| parent | 0a918aaa14edea5edb456e2171d932f999fc1af5 (diff) | |
| download | zig-6b31b178a6c6ca703211eeffa49167bfc4e0cdd4.tar.gz zig-6b31b178a6c6ca703211eeffa49167bfc4e0cdd4.zip | |
fix regression from 2f7f7d815d0c9c4e620c7a529837b5
Diffstat (limited to 'std')
| -rw-r--r-- | std/event/fs.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/std/event/fs.zig b/std/event/fs.zig index e6815c7755..5e7e24ff43 100644 --- a/std/event/fs.zig +++ b/std/event/fs.zig @@ -638,9 +638,7 @@ pub async fn readFile(loop: *Loop, file_path: []const u8, max_size: usize) ![]u8 var close_op = try CloseOperation.start(loop); defer close_op.finish(); - const file_path_c = try os.toPosixPath(file_path); - - const fd = try await (async openRead(loop, file_path_c[0..file_path.len]) catch unreachable); + const fd = try await (async openRead(loop, file_path) catch unreachable); close_op.setHandle(fd); var list = std.ArrayList(u8).init(loop.allocator); |
