correcting a bug (memset) in keybd.c
This commit is contained in:
parent
634befdcca
commit
906ca322b8
|
@ -39,7 +39,7 @@ keycode_t console_scankeybuf(void)
|
|||
|
||||
void console_flushkeybuf(void)
|
||||
{
|
||||
memset(keybuf, 0, KEYBUFSIZE);
|
||||
memset(keybuf, 0, KEYBUFSIZE * sizeof(keycode_t));
|
||||
keybuf_last = keybuf_ptr = &keybuf[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue