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);