X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Futmp-wtmp.c;h=b03a3e70af9dbf8180a78763a420a6de5dcd6d92;hp=83da640bf351c148f290592b726d8ab39d175bb0;hb=b9b2b042c5564dfff730eeab43db9ac4bbe4c650;hpb=7af53310dd9154ba76be7808292d9a046b849e43 diff --git a/src/utmp-wtmp.c b/src/utmp-wtmp.c index 83da640bf..b03a3e70a 100644 --- a/src/utmp-wtmp.c +++ b/src/utmp-wtmp.c @@ -370,7 +370,7 @@ int utmp_wall(const char *message, bool (*match_tty)(const char *tty)) { goto finish; } - getttyname_malloc(&tty); + getttyname_harder(STDIN_FILENO, &tty); if (asprintf(&text, "\a\r\n"