mirror of
https://github.com/devkitPro/wut.git
synced 2026-09-10 20:26:02 -05:00
libwhb: Fix length check in ConsoleAddLine
This commit is contained in:
@@ -26,7 +26,7 @@ ConsoleAddLine(const char *line)
|
||||
{
|
||||
int length = strlen(line);
|
||||
|
||||
if (length > LINE_LENGTH) {
|
||||
if (length >= LINE_LENGTH) {
|
||||
length = LINE_LENGTH - 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user