]> granicus.if.org Git - sudo/commitdiff
Fix term_restore
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 Feb 2009 10:47:12 +0000 (10:47 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 25 Feb 2009 10:47:12 +0000 (10:47 +0000)
term.c

diff --git a/term.c b/term.c
index 101d3396cf9bed50ebba645989a05e2cc36cc0c5..234c9dec36626edb572e2bfe45ec33dd8b5b62f8 100644 (file)
--- a/term.c
+++ b/term.c
@@ -106,7 +106,7 @@ term_restore(fd)
     int fd;
 {
     if (changed) {
-       if (tcsetattr(fd, TCSAFLUSH|TCSASOFT, &term) != 0)
+       if (tcsetattr(fd, TCSAFLUSH|TCSASOFT, &oterm) != 0)
            return(0);
        changed = 0;
     }