mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-05 18:24:08 +00:00
[host] use correct argument order for calloc
This commit is contained in:
@@ -64,7 +64,7 @@ static const char * xcb_getName(void)
|
||||
static bool xcb_create(CaptureGetPointerBuffer getPointerBufferFn, CapturePostPointerBuffer postPointerBufferFn)
|
||||
{
|
||||
DEBUG_ASSERT(!this);
|
||||
this = (struct xcb *)calloc(sizeof(*this), 1);
|
||||
this = (struct xcb *)calloc(1, sizeof(*this));
|
||||
this->shmID = -1;
|
||||
this->data = (void *)-1;
|
||||
this->frameEvent = lgCreateEvent(true, 20);
|
||||
|
Reference in New Issue
Block a user