fixing minor bugs with single unit compilation in gcc with flags on

This commit is contained in:
2025-05-16 01:08:12 -07:00
parent 50efcc13fe
commit 49361a98be
19 changed files with 109 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ void keyboard_callback() {
return;
char c = scancode_map[scancode];
if (c && buffer_index < sizeof(key_buffer)) {
if (c && buffer_index < sizeof(key_buffer) - 1) {
key_buffer[buffer_index++] = c;
terminal_putchar(c); // Echo to terminal (optional)
}