1
0
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:
Adrien Bourmault 2020-01-07 14:38:03 +01:00
parent 634befdcca
commit 906ca322b8
No known key found for this signature in database
GPG Key ID: AFEE5788AEE3F4EC

View File

@ -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];
} }