VirtualBox

Changeset 74174 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Sep 10, 2018 9:40:08 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124947
Message:

IPRT/RTCString: Fixed buggy assign(size_t, char) methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/ministring.cpp

    r73963 r74174  
    205205    reserve(a_cTimes + 1);
    206206    memset(m_psz, a_ch, a_cTimes);
     207    m_psz[a_cTimes] = '\0';
     208    m_cch = a_cTimes;
    207209    return *this;
    208210}
     
    215217    {
    216218        memset(m_psz, a_ch, a_cTimes);
     219        m_psz[a_cTimes] = '\0';
     220        m_cch = a_cTimes;
    217221        return VINF_SUCCESS;
    218222    }
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