From 14e0be7a792ccf87e2e377501fa6e0de8836c1d5 Mon Sep 17 00:00:00 2001 From: harbaum Date: Mon, 16 Mar 2009 10:45:17 +0000 Subject: Fixed pot. buffer overflow in glcd2usb git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@995 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_GLCD2USB.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drv_GLCD2USB.c b/drv_GLCD2USB.c index f883f32..eb58ea4 100644 --- a/drv_GLCD2USB.c +++ b/drv_GLCD2USB.c @@ -541,7 +541,7 @@ static int drv_GLCD2USB_keypad(const int num) else val = WIDGET_KEY_RELEASED; - return val | keys[num & 0x7f]; + return val | keys[num & 0x03]; } /* initialize driver & display */ -- cgit v1.2.3