SCI: Fix confusing use of strncpy

This commit is contained in:
Willem Jan Palenstijn 2013-04-17 23:54:21 +02:00
parent b1534913c1
commit 430db6719f

View File

@ -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);
}