VirtualBox

Changeset 21529 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 13, 2009 11:57:28 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49995
Message:

Main: fix length after substr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/string.cpp

    r21404 r21529  
    8888                ret.reserve(cbCopy + 1);
    8989                memcpy(ret.m_psz, pFirst, cbCopy);
     90                ret.m_cbLength = cbCopy;
    9091                ret.m_psz[cbCopy] = '\0';
    9192            }
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