]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: fix typo
authorKarel Zak <kzak@redhat.com>
Mon, 27 Mar 2017 16:02:54 +0000 (18:02 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 27 Mar 2017 16:02:54 +0000 (18:02 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c

index 0b22104deb8ec58a09b5783a2887ce239cbffaa7..da6c9e5e36cf9f580dbc5f3273d232c34407fd57 100644 (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);