mirror of
https://codeberg.org/flk/meta-wayland.git
synced 2024-12-28 22:38:21 +01:00
c38db22ef6
upstream is long dead, add various fixes
24 lines
504 B
Diff
24 lines
504 B
Diff
diff -Naur a/src/aalinuxkbd.c b/src/aalinuxkbd.c
|
|
--- a/src/aalinuxkbd.c 2016-12-19 12:40:26.660039735 +0100
|
|
+++ b/src/aalinuxkbd.c 2016-12-19 12:42:21.692045971 +0100
|
|
@@ -114,6 +114,7 @@
|
|
static int vtswitch_allowed;
|
|
|
|
static char key_down[128];
|
|
+static size_t key_down_size = 128;
|
|
static int closed = 1;
|
|
static int mypid;
|
|
|
|
@@ -165,10 +166,7 @@
|
|
|
|
static void blank_key_down(void)
|
|
{
|
|
- int f;
|
|
-
|
|
- for (f = 0; f < NR_KEYS; f++)
|
|
- key_down[f] = 0;
|
|
+ memset(key_down, 0, key_down_size);
|
|
}
|
|
|
|
|