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
This commit is contained in:
Vadim Zeitlin 1999-04-07 17:22:19 +00:00
parent 614ed50d20
commit b12696919b

View File

@ -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