diff options
author | Max Horn | 2003-07-15 21:33:57 +0000 |
---|---|---|
committer | Max Horn | 2003-07-15 21:33:57 +0000 |
commit | 59346f5c9abb45182e408348f525c23a387f5eab (patch) | |
tree | 41d7f06d62a7430d9a19dc26a0f0e4a0a922ac0e | |
parent | c74e2eb4d713c2d6381ca7a15dc0eeb47cf4c935 (diff) | |
download | scummvm-rg350-59346f5c9abb45182e408348f525c23a387f5eab.tar.gz scummvm-rg350-59346f5c9abb45182e408348f525c23a387f5eab.tar.bz2 scummvm-rg350-59346f5c9abb45182e408348f525c23a387f5eab.zip |
oops, this was a serious bug: message referred to buf_output (and was used by buf_output[300],) even after buf_output was out of scope
svn-id: r9046
-rw-r--r-- | scumm/script_v6.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index a4ef6749b0..a6f3b03183 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -2475,13 +2475,13 @@ void Scumm_v6::o6_kernelSetFunctions() { case 16: case 17:{ const byte *message; - byte buf_input[300]; + byte buf_input[300], buf_output[300]; _messagePtr = getStringAddressVar(VAR_STRING2DRAW); message = _msgPtrToAdd = buf_input; addMessageToStack(_messagePtr); if (_gameId == GID_DIG) { - byte buf_output[300], buf_trans[300], *ptr = buf_input; - char *t_ptr = (char *)ptr; + byte buf_trans[300]; + char *t_ptr = (char *)buf_input; buf_output[0] = 0; while (t_ptr != NULL) { if (*t_ptr == '/') { |