summaryrefslogtreecommitdiff
path: root/src/plugins/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/console.c')
-rw-r--r--src/plugins/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/console.c b/src/plugins/console.c
index f5f512dcb..5374d784f 100644
--- a/src/plugins/console.c
+++ b/src/plugins/console.c
@@ -406,7 +406,7 @@ WORKER_FUNC_START(getinput)
{// get input
input_setstate(INPUT_READING);
buf.arr[0] = '\0';
- fgets(buf.arr, INPUT_BUFSIZE-1, stdin);
+ fgets(buf.arr, INPUT_BUFSIZE, stdin);
buf.len = strlen(buf.arr);
input_setstate(INPUT_READY);
}