FULLPIPE: Safely copy string. CID 1208908

This commit is contained in:
Eugene Sandulenko 2014-06-09 22:36:01 +03:00
parent df5ef5bf2e
commit 2e30e0fc7d

View File

@ -432,7 +432,7 @@ void FullpipeEngine::playTrack(GameVar *sceneVar, const char *name, bool delayed
while (sub) { while (sub) {
if (_musicAllowed & sub->_value.intValue) { if (_musicAllowed & sub->_value.intValue) {
strcpy(_sceneTracks[_numSceneTracks], sub->_varName); strcpy(_sceneTracks[_numSceneTracks], sub->_varName, 260);
_numSceneTracks++; _numSceneTracks++;
} }