[client] main: fix heap-buffer-overflow on cursor update

This commit is contained in:
Geoffrey McRae 2022-01-26 20:05:04 +11:00
parent db3d20f935
commit 3c9b9e6370

View File

@ -432,7 +432,7 @@ int main_cursorThread(void * unused)
g_state.state = APP_STATE_SHUTDOWN; g_state.state = APP_STATE_SHUTDOWN;
break; break;
} }
cursorSize = msg.size; cursorSize = neededSize;
} }
memcpy(cursor, msg.mem, neededSize); memcpy(cursor, msg.mem, neededSize);