Fix input command parser for using only tab to separate the arguments.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24844 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-10-23 00:44:22 +00:00
parent bddc41ec40
commit 9e5f80ded3
1 changed files with 2 additions and 2 deletions

View File

@ -754,8 +754,8 @@ mp_input_parse_cmd(char* str) {
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;