Fixed pot. buffer overflow in glcd2usb

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@995 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
harbaum
2009-03-16 10:45:17 +00:00
parent cad2fcf8c8
commit 14e0be7a79

View File

@@ -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 */