summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 0b22104de..da6c9e5e3 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);