authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-03-31 10:37:56+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-04-03 10:58:39+02:00
logaa5865b9beea6d2e5615b1d9a2e6de723e006f26
tree32e51d825df751b8dd506b7b8a8d7de7741d3537
parent855edd2949c6b3b36be4c3ba8d30f174ff8b8db1

std: Fix oob slicing operator


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/fs.zig+1-1
...@@ -1522,7 +1522,7 @@ pub fn openSelfExe() OpenSelfExeError!File {...@@ -1522,7 +1522,7 @@ pub fn openSelfExe() OpenSelfExeError!File {
1522 var buf: [MAX_PATH_BYTES]u8 = undefined;1522 var buf: [MAX_PATH_BYTES]u8 = undefined;
1523 const self_exe_path = try selfExePath(&buf);1523 const self_exe_path = try selfExePath(&buf);
1524 buf[self_exe_path.len] = 0;1524 buf[self_exe_path.len] = 0;
1525 return openFileAbsoluteZ(self_exe_path[0..self_exe_path.len :0].ptr, .{});1525 return openFileAbsoluteZ(buf[0..self_exe_path.len :0].ptr, .{});
1526}1526}
15271527
1528test "openSelfExe" {1528test "openSelfExe" {