diff options
author | Iku <iku@yokattana.com> | 2017-07-02 14:52:10 +0200 |
---|---|---|
committer | Iku <iku@yokattana.com> | 2017-07-02 14:56:48 +0200 |
commit | 0cc9efd181c2adcff8a0a003cef8d4b5e5c5c1dd (patch) | |
tree | 9508fb4cbdcbfe9e2d34f3a37d4a4833a72d5fee | |
parent | 292b477fb8971f90348d1f32a24f1caccefec355 (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
-rw-r--r-- | src/tui.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |