Fix rubbish in localizer

This commit is contained in:
a1batross 2016-04-03 21:49:54 +03:00
parent 7189fe0458
commit 2c4db7d70f

View File

@ -100,7 +100,7 @@ void Localize_Init( )
if( pfile && gTitlesTXT.size() < gTitlesTXT.max_size() )
{
size_t iLen = strlen( szLocString );
size_t iLen = strlen( szLocString ) + 1;
char *szLocCopyString = new char[iLen];
strncpy(szLocCopyString, szLocString, iLen );
gTitlesTXT[ string(token) ] = szLocCopyString;