- Timestamp:
- Jul 6, 2014 7:35:16 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/string.cpp
r49039 r51887 247 247 * 248 248 * @param a_pcszSrc The source string. 249 * @param a_offSrc Start offset to copy from. 249 250 * @param a_cchSrc The source string. 250 251 * @returns S_OK or E_OUTOFMEMORY. … … 253 254 * code space.) 254 255 */ 255 HRESULT Utf8Str::copyFromExNComRC(const char *a_pcszSrc, size_t a_ cchSrc)256 HRESULT Utf8Str::copyFromExNComRC(const char *a_pcszSrc, size_t a_offSrc, size_t a_cchSrc) 256 257 { 257 258 cleanup(); … … 263 264 m_cch = a_cchSrc; 264 265 m_cbAllocated = a_cchSrc + 1; 265 memcpy(m_psz, a_pcszSrc , a_cchSrc);266 memcpy(m_psz, a_pcszSrc + a_offSrc, a_cchSrc); 266 267 m_psz[a_cchSrc] = '\0'; 267 268 }
Note:
See TracChangeset
for help on using the changeset viewer.