diff --git a/noice.c b/noice.c index 17a0cea4..c72417f9 100644 --- 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);