Changeset 104010 in vbox
- Timestamp:
- Mar 23, 2024 1:24:05 AM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 162398
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/bldprog-strtab-template.cpp.h
r103004 r104010 252 252 #endif 253 253 cMaxStrings *= 2; 254 pThis->papStrHash = (PBLDPROGSTRING *)calloc( sizeof(pThis->papStrHash[0]), cMaxStrings);254 pThis->papStrHash = (PBLDPROGSTRING *)calloc(cMaxStrings, sizeof(pThis->papStrHash[0])); 255 255 if (pThis->papStrHash) 256 256 { 257 257 pThis->cStrHash = cMaxStrings; 258 258 #ifdef BLDPROG_STRTAB_WITH_COMPRESSION 259 pThis->papPendingStrings = (PBLDPROGSTRING *)calloc( sizeof(pThis->papPendingStrings[0]), pThis->cMaxPendingStrings);259 pThis->papPendingStrings = (PBLDPROGSTRING *)calloc(pThis->cMaxPendingStrings, sizeof(pThis->papPendingStrings[0])); 260 260 if (pThis->papPendingStrings) 261 261 #endif -
trunk/src/VBox/Runtime/common/asn1/oiddb2c.cpp
r98103 r104010 247 247 if (!g_pOidRoot) 248 248 { 249 g_pOidRoot = (PRAWOIDNODE)calloc( sizeof(*g_pOidRoot), 1);249 g_pOidRoot = (PRAWOIDNODE)calloc(1, sizeof(*g_pOidRoot)); 250 250 if (!g_pOidRoot) 251 251 return error("Out of memory!\n"); -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/VBoxBs3ObjConverter.cpp
r98103 r104010 371 371 static POMFWRITER omfWriter_Create(const char *pszSrc, uint32_t cSegments, uint32_t cSymbols, FILE *pDst) 372 372 { 373 POMFWRITER pThis = (POMFWRITER)calloc( sizeof(OMFWRITER), 1);373 POMFWRITER pThis = (POMFWRITER)calloc(1, sizeof(OMFWRITER)); 374 374 if (pThis) 375 375 { … … 377 377 pThis->idxNextName = 1; /* We start counting at 1. */ 378 378 pThis->cSegments = cSegments; 379 pThis->paSegments = (POMFTOSEGDEF)calloc( sizeof(OMFTOSEGDEF), cSegments);379 pThis->paSegments = (POMFTOSEGDEF)calloc(cSegments, sizeof(OMFTOSEGDEF)); 380 380 if (pThis->paSegments) 381 381 { 382 382 pThis->cSymbols = cSymbols; 383 pThis->paSymbols = (POMFSYMBOL)calloc( sizeof(OMFSYMBOL), cSymbols);383 pThis->paSymbols = (POMFSYMBOL)calloc(cSymbols, sizeof(OMFSYMBOL)); 384 384 if (pThis->paSymbols) 385 385 {
Note:
See TracChangeset
for help on using the changeset viewer.