diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/mesg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/mesg.c b/init/mesg.c index cfb517f60..ca230f363 100644 --- a/init/mesg.c +++ b/init/mesg.c | |||
@@ -25,7 +25,7 @@ int mesg_main(int argc, char **argv) | |||
25 | if (--argc == 0 | 25 | if (--argc == 0 |
26 | || (argc == 1 && ((c = **++argv) == 'y' || c == 'n')) | 26 | || (argc == 1 && ((c = **++argv) == 'y' || c == 'n')) |
27 | ) { | 27 | ) { |
28 | tty = ttyname(STDERR_FILENO); | 28 | tty = xmalloc_ttyname(STDERR_FILENO); |
29 | if (tty == NULL) { | 29 | if (tty == NULL) { |
30 | tty = "ttyname"; | 30 | tty = "ttyname"; |
31 | } else if (stat(tty, &sb) == 0) { | 31 | } else if (stat(tty, &sb) == 0) { |