[host] use correct argument order for calloc

This commit is contained in:
Quantum
2021-08-15 18:46:46 -04:00
committed by Geoffrey McRae
parent 104141eec1
commit cdda89cef7
4 changed files with 5 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ static bool nvfbc_create(
if (!NvFBCInit())
return false;
this = (struct iface *)calloc(sizeof(*this), 1);
this = (struct iface *)calloc(1, sizeof(*this));
this->seperateCursor = option_get_bool("nvfbc", "decoupleCursor");
this->getPointerBufferFn = getPointerBufferFn;

View File

@@ -133,7 +133,7 @@ bool NvFBCToSysCreate(
return false;
}
*handle = (NvFBCHandle)calloc(sizeof(**handle), 1);
*handle = (NvFBCHandle)calloc(1, sizeof(**handle));
(*handle)->nvfbc = static_cast<NvFBCToSys *>(params.pNvFBC);
if (maxWidth)