X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6f5941be5f080ca42cb5fed4b672f5db16c0d8e..4a28b9b81cafbf10b32dacbdc4fe98944e3ff6c6:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index e2563e5c82..32a0adab79 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1762,6 +1762,8 @@ void wxArrayString::Grow(size_t nIncrement) if ( m_nSize == 0 ) { // was empty, alloc some memory m_nSize = ARRAY_DEFAULT_INITIAL_SIZE; + if (m_nSize < nIncrement) + m_nSize = nIncrement; m_pItems = new wxChar *[m_nSize]; } else {