Skip to content

Commit

Permalink
Merge pull request #401 from microsoft/357
Browse files Browse the repository at this point in the history
Fix garbled text on macos
  • Loading branch information
Tyriar authored Apr 15, 2020
2 parents 19449d2 + 913e030 commit cd72d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/pty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ pty_getproc(int fd, char *tty) {
return NULL;
}

if (*kp.kp_proc.p_comm == '\0') {
if (size != (sizeof kp) || *kp.kp_proc.p_comm == '\0') {
return NULL;
}

Expand Down

0 comments on commit cd72d33

Please sign in to comment.