diff options
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r-- | sys/kern/tty_pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index d386601..e4487ef 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -150,7 +150,7 @@ ptyinit(struct cdev *devc, struct thread *td) UID_ROOT, GID_WHEEL, 0666, "tty%c%r", names[n / 32], n % 32); pt->devc = devc; - pt->pt_tty = ttymalloc(pt->pt_tty); + pt->pt_tty = ttyalloc(); pt->pt_tty->t_sc = pt; devs->si_drv1 = devc->si_drv1 = pt; devs->si_tty = devc->si_tty = pt->pt_tty; |