diff options
-rw-r--r-- | common/str.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.cpp b/common/str.cpp index 61fdcfaf31..5d647ee4f0 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -370,7 +370,7 @@ void String::clear() { } void String::setChar(char c, uint32 p) { - assert(p <= _size); + assert(p < _size); makeUnique(); _str[p] = c; |