VirtualBox

Changeset 69060 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 12, 2017 12:53:04 PM (7 years ago)
Author:
vboxsync
Message:

inifile.cpp: Fixed wrong allocation size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/inifile.cpp

    r68317 r69060  
    244244     * Allocation section array and do the preparsing.
    245245     */
    246     pThis->paSections = (PRTINIFILESECTION)RTMemAllocZ(sizeof(pThis->paSections) * cSections);
     246    pThis->paSections = (PRTINIFILESECTION)RTMemAllocZ(sizeof(pThis->paSections[0]) * cSections);
    247247    if (!pThis->paSections)
    248248        return VERR_NO_MEMORY;
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