Fix a macOS build break caused by 3dfb949861.

This commit is contained in:
Jim Ingham 2020-10-07 15:00:08 -07:00
parent bd5fe7b010
commit 81b11c9107
1 changed files with 2 additions and 1 deletions

View File

@ -415,8 +415,9 @@ static Status HandleFileAction(ProcessLaunchInfo &launch_info,
secondary_fd =
launch_info.GetPTY().OpenSecondary(O_RDWR, nullptr, 0);
if (secondary_fd == PseudoTerminal::invalid_fd) {
std::string secondary_path = secondary_spec.GetPath();
error.SetErrorStringWithFormat(
"unable to open secondary pty '%s'", secondary_path);
"unable to open secondary pty '%s'", secondary_path.c_str());
return error; // Failure
}
[options setValue:[NSNumber numberWithInteger:secondary_fd]