FULLPIPE: Safely copy strings

This commit is contained in:
Eugene Sandulenko 2014-06-09 22:34:21 +03:00
parent c41ebe6f45
commit df5ef5bf2e

View File

@ -268,7 +268,7 @@ void FullpipeEngine::setSceneMusicParameters(GameVar *gvar) {
while (sub) {
if (_musicAllowed & sub->_value.intValue) {
strcpy(_sceneTracks[_numSceneTracks], sub->_varName);
strncpy(_sceneTracks[_numSceneTracks], sub->_varName, 260);
_numSceneTracks++;
}