[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.171,1.172

Max Horn fingolfin at users.sourceforge.net
Tue Jul 15 14:35:24 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv11485

Modified Files:
	script_v6.cpp 
Log Message:
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

Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -d -r1.171 -r1.172
--- script_v6.cpp	15 Jul 2003 21:30:53 -0000	1.171
+++ script_v6.cpp	15 Jul 2003 21:33:57 -0000	1.172
@@ -2475,13 +2475,13 @@
 		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 == '/') {





More information about the Scummvm-git-logs mailing list