* [PATCH] kvm tools: sdl -- Fix array size for keymap
@ 2011-12-18 18:57 Cyrill Gorcunov
0 siblings, 0 replies; only message in thread
From: Cyrill Gorcunov @ 2011-12-18 18:57 UTC (permalink / raw)
To: Pekka Enberg; +Cc: Sasha Levin, Asias He, Ingo Molnar, KVM-ML
Index is u8 value so array size should be 256.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
tools/kvm/ui/sdl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.git/tools/kvm/ui/sdl.c
===================================================================
--- linux-2.6.git.orig/tools/kvm/ui/sdl.c
+++ linux-2.6.git/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), /* <esc> */
[10] = DEFINE_SC(0x16), /* 1 */
[11] = DEFINE_SC(0x1e), /* 2 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-18 18:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-18 18:57 [PATCH] kvm tools: sdl -- Fix array size for keymap Cyrill Gorcunov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.