Fix rubbish in localizer
This commit is contained in:
parent
7189fe0458
commit
2c4db7d70f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user