diff --git a/openVCBReader.cpp b/openVCBReader.cpp index 4b72b9d..b424dec 100644 --- a/openVCBReader.cpp +++ b/openVCBReader.cpp @@ -261,7 +261,7 @@ namespace openVCB { if (vmemFlag) { vmemSize = 1ull << vmAddr.numBits; vmem = new int[vmemSize]; - memset(vmem, 0, vmemSize); + memset(vmem, 0, 4 * vmemSize); } unsigned char* cc = &logicData[0];