| ... | ... | @@ -2193,7 +2193,7 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 { |
| 2193 | 2193 | // Note that _NSGetExecutablePath() will return "a path" to |
| 2194 | 2194 | // the executable not a "real path" to the executable. |
| 2195 | 2195 | var symlink_path_buf: [MAX_PATH_BYTES:0]u8 = undefined; |
| 2196 | | var u32_len: u32 = MAX_PATH_BYTES; |
| 2196 | var u32_len: u32 = MAX_PATH_BYTES + 1; // include the sentinel |
| 2197 | 2197 | const rc = std.c._NSGetExecutablePath(&symlink_path_buf, &u32_len); |
| 2198 | 2198 | if (rc != 0) return error.NameTooLong; |
| 2199 | 2199 | |