X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a425518dc40b5fa9b8a171f402b89fb9c5a1e547..8168167976dc3cc5f5223a21e1a62ba91a4f77b3:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index 1cb717510f..c2bab603e2 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -174,7 +174,7 @@ void wxStringBase::InitWith(const wxChar *psz, size_t nPos, size_t nLength) // poor man's iterators are "void *" pointers wxStringBase::wxStringBase(const void *pStart, const void *pEnd) { - if ( pEnd > pStart ) + if ( pEnd >= pStart ) { InitWith((const wxChar *)pStart, 0, (const wxChar *)pEnd - (const wxChar *)pStart);