Make room for null-terminator

This commit is contained in:
sin 2015-11-20 11:42:15 +00:00
parent f77b6a3fa6
commit ea0cce7b63

View file

@ -331,7 +331,7 @@ readln(void)
echo();
curs_set(TRUE);
getnstr(ln, sizeof(ln));
getnstr(ln, sizeof(ln) - 1);
noecho();
curs_set(FALSE);
return strdup(ln);