From 9ff67eb9c88298f5e47007c56724aa102a1623ac Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 27 Mar 2017 18:02:54 +0200 Subject: [PATCH] agetty: fix typo Signed-off-by: Karel Zak --- term-utils/agetty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 0b22104deb..da6c9e5e36 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -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); -- 2.47.3