# HG changeset patch # User ulion # Date 1193100262 0 # Node ID ba929c5ee0bcad2d737071d656231df5cfd1489a # Parent c10db72e1afc2af0ab726ba4591750f23bcd1e76 Fix input command parser for using only tab to separate the arguments. diff -r c10db72e1afc -r ba929c5ee0bc input/input.c --- a/input/input.c Tue Oct 23 00:06:08 2007 +0000 +++ b/input/input.c Tue Oct 23 00:44:22 2007 +0000 @@ -754,8 +754,8 @@ ptr = str; for(i=0; ptr && i < MP_CMD_MAX_ARGS; i++) { - ptr = strchr(ptr,' '); - if(!ptr) break; + while(ptr[0] != ' ' && ptr[0] != '\t' && ptr[0] != '\0') ptr++; + if(ptr[0] == '\0') break; while(ptr[0] == ' ' || ptr[0] == '\t') ptr++; if(ptr[0] == '\0') break; cmd->args[i].type = cmd_def->args[i].type;