Use wgetnstr() instead of getnstr() because IRIX lacks the latter

This commit is contained in:
sin 2015-11-20 14:04:01 +00:00
parent 30ca80310a
commit 9b47bfd9aa

View file

@ -332,7 +332,7 @@ readln(void)
echo(); echo();
curs_set(TRUE); curs_set(TRUE);
memset(ln, 0, sizeof(ln)); memset(ln, 0, sizeof(ln));
getnstr(ln, sizeof(ln) - 1); wgetnstr(stdscr, ln, sizeof(ln) - 1);
noecho(); noecho();
curs_set(FALSE); curs_set(FALSE);
return strlen(ln) ? strdup(ln) : NULL; return strlen(ln) ? strdup(ln) : NULL;