aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/str.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.cpp b/common/str.cpp
index 685faf85fa..e8e73a32a2 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -67,7 +67,7 @@ String::String(const String &str)
_refCount = str._refCount;
_capacity = str._capacity;
- _len = str._capacity;
+ _len = str._len;
_str = str._str;
}