sinfonia: Fix a (thankfully) harmless overflow in the button command
This commit is contained in:
parent
eaa65b12ff
commit
8d40045692
|
@ -824,7 +824,7 @@ int sinfonia_button_set(struct sinfonia_usbdev *dev, int enable)
|
|||
|
||||
if ((ret = sinfonia_docmd(dev,
|
||||
(uint8_t*)&cmd, sizeof(cmd),
|
||||
(uint8_t*)&cmd, sizeof(resp),
|
||||
(uint8_t*)&resp, sizeof(resp),
|
||||
&num))) {
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define LIBSINFONIA_VER "0.20"
|
||||
#define LIBSINFONIA_VER "0.21"
|
||||
|
||||
#define SINFONIA_HDR1_LEN 0x10
|
||||
#define SINFONIA_HDR2_LEN 0x64
|
||||
|
|
Loading…
Reference in a new issue