summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/video/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/drivers/video/video.c')
-rw-r--r--payloads/libpayload/drivers/video/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/video/video.c b/payloads/libpayload/drivers/video/video.c
index 87b16b8a31..1eadce61cb 100644
--- a/payloads/libpayload/drivers/video/video.c
+++ b/payloads/libpayload/drivers/video/video.c
@@ -66,7 +66,7 @@ static void video_console_fixup_cursor(void)
if (cursory < 0)
cursory = 0;
- if (cursorx > VIDEO_COLS) {
+ if (cursorx >= VIDEO_COLS) {
cursorx = 0;
cursory++;
}