Fix term_restore

This commit is contained in:
Todd C. Miller
2009-02-25 10:47:12 +00:00
parent 710e72ecb3
commit 2e8d722ae4

2
term.c
View File

@@ -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;
}