From 2c4db7d70f45ce232bd9c5ae83040e2b56a4da9e Mon Sep 17 00:00:00 2001 From: a1batross Date: Sun, 3 Apr 2016 21:49:54 +0300 Subject: [PATCH] Fix rubbish in localizer --- cl_dll/vgui_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_dll/vgui_parser.cpp b/cl_dll/vgui_parser.cpp index 3fbdfef..76a0baa 100644 --- a/cl_dll/vgui_parser.cpp +++ b/cl_dll/vgui_parser.cpp @@ -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;