Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2017-01-24 22:01:13 +00:00
15 changed files with 303 additions and 226 deletions

2
pty.c
View File

@ -53,7 +53,7 @@ pty_fork(int ptmfd, int *fd, char *name, size_t namelen, struct winsize *ws)
struct ptmget ptm;
pid_t pid;
if ((ioctl(ptmfd, PTMGET, &ptm) == -1))
if (ioctl(ptmfd, PTMGET, &ptm) == -1)
return (-1);
strlcpy(name, ptm.sn, namelen);