From: Vadim Zeitlin Date: Wed, 7 Apr 1999 17:22:19 +0000 (+0000) Subject: allow access to terminating NUL character with operator[] X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b12696919b8b9795561d17151bdec10b705d4b35?ds=inline allow access to terminating NUL character with operator[] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index 50f9fbf4a1..ade4672b4d 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -66,7 +66,7 @@ const unsigned int wxSTRING_MAXLEN = UINT_MAX - 100; #define WXSTRINGCAST (char *)(const char *) // implementation only -#define ASSERT_VALID_INDEX(i) wxASSERT( (unsigned)(i) < Len() ) +#define ASSERT_VALID_INDEX(i) wxASSERT( (unsigned)(i) <= Len() ) // --------------------------------------------------------------------------- // Global functions complementing standard C string library replacements for