mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-12 03:36:42 +00:00
Make sure that "buf" is properly terminated. Actually, we could probably get
rid of "buf" completely, and replace it with face = syncChar[p] - '0', assuming that syncChar only contains digits. But for now, let's make a minimal change. This might fix bug #2826611 ("DRASCULA: Crash when smashing church window"). svn-id: r42776
This commit is contained in:
parent
1ebcec73bf
commit
7d238d8779
@ -803,6 +803,7 @@ void DrasculaEngine::talk_sync(const char *said, const char *filename, const cha
|
|||||||
|
|
||||||
p = 0;
|
p = 0;
|
||||||
|
|
||||||
|
memset(buf, 0, sizeof(buf));
|
||||||
talkInit(filename);
|
talkInit(filename);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user