From 33a29ca61ce6c8d653017b61bfae33b4da71dc01 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Wed, 20 Mar 2013 20:10:13 +0000 Subject: COMMON: Fix assert condition in String::setChar() --- common/str.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/str.cpp') 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; -- cgit v1.2.3