sinfonia: Fix a (thankfully) harmless overflow in the button command

This commit is contained in:
Solomon Peachy 2024-12-24 09:20:20 -05:00
parent eaa65b12ff
commit 8d40045692
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -24,7 +24,7 @@
*
*/
#define LIBSINFONIA_VER "0.20"
#define LIBSINFONIA_VER "0.21"
#define SINFONIA_HDR1_LEN 0x10
#define SINFONIA_HDR2_LEN 0x64