aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar sin <sin@2f30.org>2015-11-20 11:42:15 +0000
committerGravatar sin <sin@2f30.org>2015-11-20 11:42:15 +0000
commitea0cce7b6390cab3ba7c16560f50e69322eb89fb (patch)
tree4d884673d481adf4ea64dc0a5de701c4dc5cc4b7
parentf77b6a3fa6830c4e52e5ab7c4c07eb310743c75f (diff)
downloadnnn-ea0cce7b6390cab3ba7c16560f50e69322eb89fb.tar.gz
Make room for null-terminator
-rw-r--r--noice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/noice.c b/noice.c
index 17a0cea..c72417f 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);