Fix out-of-bounds array access in Mouse Systems mouse emulation.

This commit is contained in:
SarahW 2017-11-11 20:16:40 +00:00
commit 170cf99ffb

View file

@ -16,7 +16,7 @@ static void mouse_msystems_poll(int x, int y, int z, int b, void *p)
{
mouse_msystems_t *mouse = (mouse_msystems_t *)p;
SERIAL *serial = mouse->serial;
uint8_t mousedat[4];
uint8_t mousedat[5];
if (!x && !y && b == mouse->oldb)
return;