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
1 changed files with 1 additions and 1 deletions

View File

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