| ... | @@ -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 | } |
| 1527 | | 1527 | |
| 1528 | test "openSelfExe" { | 1528 | test "openSelfExe" { |