Prevent current_command_args from bypassing nul (PR#2270)

This commit is contained in:
Scott Lahteine authored and Richard Wackerbarth committed 2015-06-09 16:07:10 -05:00
1 parent 4061279218
commit 962b107341
1 file changed
+1 -1
+1 -1
View File
@@ -5279,7 +5279,7 @@ void process_next_command() {
// Args pointer optimizes code_seen, especially those taking XYZEF
// This wastes a little cpu on commands that expect no arguments.
current_command_args = current_command;
while (*current_command_args != ' ') ++current_command_args;
while (*current_command_args && *current_command_args != ' ') ++current_command_args;
while (*current_command_args == ' ') ++current_command_args;
// Interpret the code int