VirtualBox

Changeset 86298 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Sep 25, 2020 9:07:47 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140575
Message:

Storage/VMDK: vmdkStrReplace must use RTStrAlloc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VMDK.cpp

    r85946 r86298  
    62956295    }
    62966296    size_t cbFinal = strlen(pszWhere) + 1 + strlen(pszByWhat) - strlen(pszWhat);
    6297     char *pszNewStr = (char *)RTMemAlloc(cbFinal);
     6297    char *pszNewStr = RTStrAlloc(cbFinal);
    62986298    if (pszNewStr)
    62996299    {
Note: See TracChangeset for help on using the changeset viewer.

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