From 75bd5249ada7825ff751e61434a4a7fc7b4f140a Mon Sep 17 00:00:00 2001 From: NatrixAeria Date: Fri, 16 Apr 2021 15:12:45 +0200 Subject: Fix offsetting in vga text buffer --- kernel/src/io/vga_text.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel/src/io/vga_text.rs') diff --git a/kernel/src/io/vga_text.rs b/kernel/src/io/vga_text.rs index c6d8731..890defb 100644 --- a/kernel/src/io/vga_text.rs +++ b/kernel/src/io/vga_text.rs @@ -223,6 +223,7 @@ impl<'a> VgaTerminalControllerLock<'a> { chars.as_ptr(), core::mem::size_of::() * chars.len(), ); + *self.lock = self.lock.offset(chars.len() as isize); } } } -- cgit v1.2.3-70-g09d2