mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
FULLPIPE: Safely copy strings
This commit is contained in:
parent
c41ebe6f45
commit
df5ef5bf2e
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user