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

This commit is contained in:
Geoffrey McRae committed 2022-01-26 20:05:51 +11:00
1 parent db3d20f935
commit 3c9b9e6370
1 file changed
+1 -1
+1 -1
View File
@@ -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);