summaryrefslogtreecommitdiff
path: root/src/c/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/keyboard.c')
-rw-r--r--src/c/keyboard.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/c/keyboard.c b/src/c/keyboard.c
index a95d399..ab31315 100644
--- a/src/c/keyboard.c
+++ b/src/c/keyboard.c
@@ -150,8 +150,11 @@ void keyboard_handler()
{
c=shift_charcode[keycode];
}
- buffer[buffer_current][buffer_index++]=c;
- printf("%c",c);
+ if(buffer_index<BUFFER_SIZE)
+ {
+ buffer[buffer_current][buffer_index++]=c;
+ printf("%c",c);
+ }
}
break;
}