From 5982c72a8ab52366fdf3f7c9df3bc1e4eb7d8009 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Sun, 22 Oct 2017 01:57:56 +0100 Subject: [PATCH] Decrease VGA memory array size by one. Correction of an off by one error to ensure we stay within the appropriate memory. --- kernel/arch/i386/tty.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/arch/i386/tty.nim b/kernel/arch/i386/tty.nim index baf7c3f..b9e1e79 100644 --- a/kernel/arch/i386/tty.nim +++ b/kernel/arch/i386/tty.nim @@ -1,7 +1,7 @@ import vga type - VGAMemory = ptr array[0..2000, VGADoubleByte] + VGAMemory = ptr array[0..1999, VGADoubleByte] const vgaWidth = 80