From: Todd C. Miller Date: Wed, 25 Feb 2009 10:47:12 +0000 (+0000) Subject: Fix term_restore X-Git-Tag: SUDO_1_7_1~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e8d722ae4acd04d7793ff5dadf4f64c6f8ceda4;p=sudo Fix term_restore --- diff --git a/term.c b/term.c index 101d3396c..234c9dec3 100644 --- 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; }