diff options
author | Felix Geyer <debfx-pkg@fobos.de> | 2010-12-02 21:16:28 +0100 |
---|---|---|
committer | Felix Geyer <debfx-pkg@fobos.de> | 2010-12-02 21:16:28 +0100 |
commit | d4835ef8bf2b0196ae1887c04e3d57cce840904c (patch) | |
tree | d5355506a38f020c0cb682c5a1411f47368d6456 /src/VBox/Runtime/common/string/stringalloc.cpp | |
parent | 7f230f4ac2a1b544b47ded0584c22822b9bd65d7 (diff) | |
download | virtualbox-d4835ef8bf2b0196ae1887c04e3d57cce840904c.tar.gz |
Imported Upstream version 3.2.12-dfsgupstream/3.2.12-dfsg
Diffstat (limited to 'src/VBox/Runtime/common/string/stringalloc.cpp')
-rw-r--r-- | src/VBox/Runtime/common/string/stringalloc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VBox/Runtime/common/string/stringalloc.cpp b/src/VBox/Runtime/common/string/stringalloc.cpp index 25ab57713..f3c757654 100644 --- a/src/VBox/Runtime/common/string/stringalloc.cpp +++ b/src/VBox/Runtime/common/string/stringalloc.cpp @@ -270,7 +270,7 @@ RTDECL(int) RTStrATruncate(char **ppsz, size_t cchNew) else { AssertPtrReturn(pszOld, VERR_OUT_OF_RANGE); - AssertPtrReturn(cchNew < ~(size_t)64, VERR_OUT_OF_RANGE); + AssertReturn(cchNew < ~(size_t)64, VERR_OUT_OF_RANGE); char *pszZero = RTStrEnd(pszOld, cchNew + 63); AssertReturn(!pszZero || (size_t)(pszZero - pszOld) >= cchNew, VERR_OUT_OF_RANGE); pszOld[cchNew] = '\0'; |