Skip to content

Commit

Permalink
libwhb: Fix length check in ConsoleAddLine
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell authored and fincs committed Oct 12, 2022
1 parent 575b889 commit 96d410c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/libwhb/src/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ConsoleAddLine(const char *line)
{
int length = strlen(line);

if (length > LINE_LENGTH) {
if (length >= LINE_LENGTH) {
length = LINE_LENGTH - 1;
}

Expand Down

0 comments on commit 96d410c

Please sign in to comment.