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:
parent
614ed50d20
commit
b12696919b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user