git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@148
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxASSERT( nPos <= Len() );
wxString strTmp;
wxASSERT( nPos <= Len() );
wxString strTmp;
- char *pc = strTmp.GetWriteBuf(Len() + str.Len() + 1);
+ char *pc = strTmp.GetWriteBuf(Len() + str.Len());
strncpy(pc, c_str(), nPos);
strcpy(pc + nPos, str);
strcpy(pc + nPos + str.Len(), c_str() + nPos);
strncpy(pc, c_str(), nPos);
strcpy(pc + nPos, str);
strcpy(pc + nPos + str.Len(), c_str() + nPos);