mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
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)
|
void console_flushkeybuf(void)
|
||||||
{
|
{
|
||||||
memset(keybuf, 0, KEYBUFSIZE);
|
memset(keybuf, 0, KEYBUFSIZE * sizeof(keycode_t));
|
||||||
keybuf_last = keybuf_ptr = &keybuf[0];
|
keybuf_last = keybuf_ptr = &keybuf[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user