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:
@@ -66,7 +66,7 @@ const unsigned int wxSTRING_MAXLEN = UINT_MAX - 100;
|
|||||||
#define WXSTRINGCAST (char *)(const char *)
|
#define WXSTRINGCAST (char *)(const char *)
|
||||||
|
|
||||||
// implementation only
|
// 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
|
// Global functions complementing standard C string library replacements for
|
||||||
|
Reference in New Issue
Block a user