summaryrefslogtreecommitdiffstats
path: root/src/tui.c
diff options
context:
space:
mode:
authorIku <iku@yokattana.com>2017-07-02 14:52:10 +0200
committerIku <iku@yokattana.com>2017-07-02 14:56:48 +0200
commit0cc9efd181c2adcff8a0a003cef8d4b5e5c5c1dd (patch)
tree9508fb4cbdcbfe9e2d34f3a37d4a4833a72d5fee /src/tui.c
parent292b477fb8971f90348d1f32a24f1caccefec355 (diff)
Fix segfault on launch with Mac ncurses
It appears that in some versions of ncurses the call to newscr() does not accept a NULL ifp argument. I don't know if this is the correct solution but it does prevent the segfault. See: https://github.com/andmarti1424/sc-im/issues/159
Diffstat (limited to 'src/tui.c')
-rw-r--r--src/tui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tui.c b/src/tui.c
index 198f371..cbc2fa1 100644
--- a/src/tui.c
+++ b/src/tui.c
@@ -81,7 +81,7 @@ SCREEN * sstdout;
srange * ranges;
void ui_start_screen() {
- sstderr = newterm(NULL, stderr, NULL);
+ sstderr = newterm(NULL, stderr, stdin);
noecho();
sstdout = newterm(NULL, stdout, stdin);
set_term(sstdout);