mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-07 10:48:43 +00:00
SCI: Fix confusing use of strncpy
This commit is contained in:
parent
b1534913c1
commit
430db6719f
@ -913,7 +913,8 @@ int MidiPlayer_Midi::open(ResourceManager *resMan) {
|
||||
if (res) {
|
||||
if (isMt32GmPatch(res->data, res->size)) {
|
||||
readMt32GmPatch(res->data, res->size);
|
||||
strncpy((char *)_goodbyeMsg, " ScummVM ", 20);
|
||||
// Note that _goodbyeMsg is not zero-terminated
|
||||
memcpy(_goodbyeMsg, " ScummVM ", 20);
|
||||
} else {
|
||||
readMt32Patch(res->data, res->size);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user