From 69b1ed97d0bb5e8aee88a044f3a6870d184386da Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 18 Dec 2011 22:57:21 +0400 Subject: [PATCH] kvm tools, sd: Fix array size for keymap Index is u8 value so array size should be 256. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pekka Enberg --- tools/kvm/ui/sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kvm/ui/sdl.c b/tools/kvm/ui/sdl.c index 5bf11fa6a954..ac7f01316204 100644 --- a/tools/kvm/ui/sdl.c +++ b/tools/kvm/ui/sdl.c @@ -34,7 +34,7 @@ struct set2_scancode { .type = SCANCODE_ESCAPED,\ } -static const struct set2_scancode const keymap[255] = { +static const struct set2_scancode const keymap[256] = { [9] = DEFINE_SC(0x76), /* */ [10] = DEFINE_SC(0x16), /* 1 */ [11] = DEFINE_SC(0x1e), /* 2 */ -- 2.39.5