diff options
Diffstat (limited to 'init/mesg.c')
-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 cfb517f..ca230f3 100644 --- a/init/mesg.c +++ b/init/mesg.c @@ -25,7 +25,7 @@ int mesg_main(int argc, char **argv) if (--argc == 0 || (argc == 1 && ((c = **++argv) == 'y' || c == 'n')) ) { - tty = ttyname(STDERR_FILENO); + tty = xmalloc_ttyname(STDERR_FILENO); if (tty == NULL) { tty = "ttyname"; } else if (stat(tty, &sb) == 0) { |