agetty: fix typo

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-03-27 18:02:54 +02:00
parent 9877680cae
commit 9ff67eb9c8
1 changed files with 1 additions and 1 deletions

View File

@ -1863,7 +1863,7 @@ static char *get_logname(struct options *op, struct termios *tp, struct chardata
* (disabled ECHO in wait_for_term_input()).
*/
if (!wait_for_term_input(STDIN_FILENO,
prebuf, sizeof(prebuf), &readsz)) {
prebuf, sizeof(prebuf), &presz)) {
if (op->flags & F_VCONSOLE)
termio_clear(STDOUT_FILENO);