diff options
author | sin <sin@2f30.org> | 2015-11-20 11:42:15 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2015-11-20 11:42:15 +0000 |
commit | ea0cce7b6390cab3ba7c16560f50e69322eb89fb (patch) | |
tree | 4d884673d481adf4ea64dc0a5de701c4dc5cc4b7 | |
parent | f77b6a3fa6830c4e52e5ab7c4c07eb310743c75f (diff) | |
download | nnn-ea0cce7b6390cab3ba7c16560f50e69322eb89fb.tar.gz |
Make room for null-terminator
-rw-r--r-- | noice.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |