Skip to content

Commit cd72d33

Browse files
authored
Merge pull request #401 from microsoft/357
Fix garbled text on macos
2 parents 19449d2 + 913e030 commit cd72d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/pty.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ pty_getproc(int fd, char *tty) {
609609
return NULL;
610610
}
611611

612-
if (*kp.kp_proc.p_comm == '\0') {
612+
if (size != (sizeof kp) || *kp.kp_proc.p_comm == '\0') {
613613
return NULL;
614614
}
615615

0 commit comments

Comments
 (0)