From 3237ac188b4b7dcfd17bd06e325fe29ae0607fad Mon Sep 17 00:00:00 2001 From: Brian Barto Date: Fri, 24 Sep 2021 14:42:54 -0400 Subject: [PATCH] Reverting commit 1e80be48 because it is causing compile warnings. modified: src/nmstermio.c --- src/nmstermio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nmstermio.c b/src/nmstermio.c index 2aa8ca2..f4f082c 100644 --- a/src/nmstermio.c +++ b/src/nmstermio.c @@ -296,7 +296,7 @@ static void nmstermio_set_terminal(int s) { static int state = 1; if (!isatty(STDIN_FILENO)) { - freopen("/dev/tty", "r", stdin); + stdin = freopen("/dev/tty", "r", stdin); } if (s == 0) {