mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] main: fix heap-buffer-overflow on cursor update
This commit is contained in:
parent
db3d20f935
commit
3c9b9e6370
@ -432,7 +432,7 @@ int main_cursorThread(void * unused)
|
||||
g_state.state = APP_STATE_SHUTDOWN;
|
||||
break;
|
||||
}
|
||||
cursorSize = msg.size;
|
||||
cursorSize = neededSize;
|
||||
}
|
||||
|
||||
memcpy(cursor, msg.mem, neededSize);
|
||||
|
Loading…
Reference in New Issue
Block a user