Changeset - r22662:33d6fc8822d9
[Not reviewed]
master
0 1 0
frosch - 7 years ago 2017-06-22 16:31:04
frosch@openttd.org
(svn r27883) -Fix [FS#6576]: Console command parser passed invalid strings to the debug output, if command lines had many parameters.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/console.cpp
Show inline comments
 
@@ -473,7 +473,7 @@ void IConsoleCmdExec(const char *cmdstr)
 
		}
 
	}
 

	
 
	for (uint i = 0; tokens[i] != NULL; i++) {
 
	for (uint i = 0; i < lengthof(tokens) && tokens[i] != NULL; i++) {
 
		DEBUG(console, 8, "Token %d is: '%s'", i, tokens[i]);
 
	}
 

	
0 comments (0 inline, 0 general)