diff --git a/src/system/boot/platform/atari_m68k/console.cpp b/src/system/boot/platform/atari_m68k/console.cpp index d4f10c1365..94d664e07f 100644 --- a/src/system/boot/platform/atari_m68k/console.cpp +++ b/src/system/boot/platform/atari_m68k/console.cpp @@ -205,6 +205,8 @@ void console_set_cursor(int32 x, int32 y) { char buff[] = "\033Y "; + x = MIN(79,MAX(0,x)); + y = MIN(24,MAX(0,y)); buff[3] += (char)x; buff[2] += (char)y; sInput.WriteAt(NULL, 0LL, buff, 4);