diff options
Diffstat (limited to 'src/corelib/tools/qstringalgorithms_p.h')
-rw-r--r-- | src/corelib/tools/qstringalgorithms_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qstringalgorithms_p.h b/src/corelib/tools/qstringalgorithms_p.h index c3a87b2072..2911055f6a 100644 --- a/src/corelib/tools/qstringalgorithms_p.h +++ b/src/corelib/tools/qstringalgorithms_p.h @@ -146,7 +146,7 @@ template <typename StringType> struct QStringAlgorithms // nothing happened, return the original return str; } - result.resize(ptr - dst); + result.resize(newlen); return result; } }; |