Changeset 39032 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Oct 19, 2011 11:08:50 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 74450
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/RTStrCatP.cpp
r36407 r39032 5 5 6 6 /* 7 * Copyright (C) 2010 Oracle Corporation7 * Copyright (C) 2010-2011 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 39 39 * a copy operation. 40 40 */ 41 size_t cbDst = *pcbDst; 42 char *pszDst = RTStrEnd(*ppszDst, *pcbDst); 41 char *pszDstOrg = *ppszDst; 42 size_t cbDst = *pcbDst; 43 char *pszDst = RTStrEnd(pszDstOrg, cbDst); 43 44 AssertReturn(pszDst, VERR_INVALID_PARAMETER); 44 *pcbDst -= pszDst - *ppszDst;45 45 *ppszDst = pszDst; 46 *pcbDst = cbDst - (pszDst - pszDstOrg); 46 47 47 48 return RTStrCopyP(ppszDst, pcbDst, pszSrc);
Note:
See TracChangeset
for help on using the changeset viewer.