VirtualBox

Changeset 27291 in vbox


Ignore:
Timestamp:
Mar 11, 2010 4:45:26 PM (15 years ago)
Author:
vboxsync
Message:

iprt/ministring: when reserving space in a formerly empty string, make sure that the string termination is present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/ministring.h

    r26753 r27291  
    160160            if (RT_LIKELY(pszNew))
    161161            {
     162                if (!m_psz)
     163                    *pszNew = '\0';
    162164                m_psz = pszNew;
    163165                m_cbAllocated = cb;
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