VirtualBox

Changeset 104010 in vbox for trunk/include


Ignore:
Timestamp:
Mar 23, 2024 1:24:05 AM (10 months ago)
Author:
vboxsync
Message:

*: Fixed various calloc argument order warnings from gcc 14.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/bldprog-strtab-template.cpp.h

    r103004 r104010  
    252252#endif
    253253    cMaxStrings *= 2;
    254     pThis->papStrHash = (PBLDPROGSTRING *)calloc(sizeof(pThis->papStrHash[0]), cMaxStrings);
     254    pThis->papStrHash = (PBLDPROGSTRING *)calloc(cMaxStrings, sizeof(pThis->papStrHash[0]));
    255255    if (pThis->papStrHash)
    256256    {
    257257        pThis->cStrHash = cMaxStrings;
    258258#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]));
    260260        if (pThis->papPendingStrings)
    261261#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette