mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 11:17:54 +00:00
[obs] fix oob cursor writes
Allocate enough memory for the cursor data!
This commit is contained in:
parent
9db3cd7b51
commit
1a530da139
1 changed files with 1 additions and 1 deletions
2
obs/lg.c
2
obs/lg.c
|
@ -259,7 +259,7 @@ static void * pointerThread(void * data)
|
|||
|
||||
case CURSOR_TYPE_MONOCHROME:
|
||||
{
|
||||
dataSize = cursor->height * sizeof(uint32_t);
|
||||
dataSize = cursor->height * cursor->width * sizeof(uint32_t);
|
||||
allocCursorData(this, dataSize);
|
||||
|
||||
const int hheight = cursor->height / 2;
|
||||
|
|
Loading…
Reference in a new issue