diff options
author | harbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-03-16 10:45:17 +0000 |
---|---|---|
committer | harbaum <harbaum@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-03-16 10:45:17 +0000 |
commit | 14e0be7a792ccf87e2e377501fa6e0de8836c1d5 (patch) | |
tree | e16d6f5e670aabcff39c42754da44eeadbc750f9 | |
parent | cad2fcf8c8f864d1b06533a7ba592e73d4c3d380 (diff) | |
download | lcd4linux-14e0be7a792ccf87e2e377501fa6e0de8836c1d5.tar.gz |
Fixed pot. buffer overflow in glcd2usb
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@995 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | drv_GLCD2USB.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |