From 96d410c827867183fe22a2d694eb9ef14e03a4d3 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 12 Oct 2022 23:58:37 +0200 Subject: [PATCH] libwhb: Fix length check in ConsoleAddLine --- libraries/libwhb/src/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libwhb/src/console.c b/libraries/libwhb/src/console.c index c37267feb..4da5bb8c2 100644 --- a/libraries/libwhb/src/console.c +++ b/libraries/libwhb/src/console.c @@ -26,7 +26,7 @@ ConsoleAddLine(const char *line) { int length = strlen(line); - if (length > LINE_LENGTH) { + if (length >= LINE_LENGTH) { length = LINE_LENGTH - 1; }