summaryrefslogtreecommitdiff
path: root/bin/stty/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/stty/key.c')
-rw-r--r--bin/stty/key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/stty/key.c b/bin/stty/key.c
index 6a7aeca935e2..1f7114864058 100644
--- a/bin/stty/key.c
+++ b/bin/stty/key.c
@@ -276,6 +276,6 @@ f_tty(ip)
int tmp;
tmp = TTYDISC;
- if (ioctl(0, TIOCSETD, &tmp) < 0)
+ if (ioctl(ip->fd, TIOCSETD, &tmp) < 0)
err("TIOCSETD: %s", strerror(errno));
}