diff options
author | Torbjörn Andersson | 2009-07-25 17:48:51 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2009-07-25 17:48:51 +0000 |
commit | 7d238d877970ad906997d2cb36235c65dc38b1db (patch) | |
tree | f2582d6291a5efe09bfbda44f300b8f7b3a2e4f7 /engines | |
parent | 1ebcec73bfe274a91aa54a1a240a2bfd3352255e (diff) | |
download | scummvm-rg350-7d238d877970ad906997d2cb36235c65dc38b1db.tar.gz scummvm-rg350-7d238d877970ad906997d2cb36235c65dc38b1db.tar.bz2 scummvm-rg350-7d238d877970ad906997d2cb36235c65dc38b1db.zip |
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
Diffstat (limited to 'engines')
-rw-r--r-- | engines/drascula/talk.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/drascula/talk.cpp b/engines/drascula/talk.cpp index 7c94938c9b..4b649ce8db 100644 --- a/engines/drascula/talk.cpp +++ b/engines/drascula/talk.cpp @@ -803,6 +803,7 @@ void DrasculaEngine::talk_sync(const char *said, const char *filename, const cha p = 0; + memset(buf, 0, sizeof(buf)); talkInit(filename); do { |