[host] use variable-relative sizeof where possible

This commit is contained in:
Tudor Brindus authored and Geoffrey McRae committed 2021-08-16 16:22:55 +10:00
1 parent c3f7327187
commit 982b4e6625
4 files changed
+10 -10

No files matched your search

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