noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit ea0cce7b6390cab3ba7c16560f50e69322eb89fb
parent f77b6a3fa6830c4e52e5ab7c4c07eb310743c75f
Author: sin <sin@2f30.org>
Date:   Fri, 20 Nov 2015 11:42:15 +0000

Make room for null-terminator

Diffstat:
Mnoice.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/noice.c b/noice.c @@ -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);