diff options
author | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-10-23 00:44:22 +0000 |
---|---|---|
committer | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-10-23 00:44:22 +0000 |
commit | 9e5f80ded3a80cb1c6b5eee5fba2634c841c90b4 (patch) | |
tree | 37901b77b9d44f8026116b0ed0ba2da795966109 | |
parent | bddc41ec4023bc57b09fe4293a36adb4a1f5c8c1 (diff) |
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
-rw-r--r-- | input/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input/input.c b/input/input.c index 7380345bec..4b0f24c45f 100644 --- a/input/input.c +++ b/input/input.c @@ -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; |