diff options
author | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-11 11:44:00 +0000 |
---|---|---|
committer | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-11 11:44:00 +0000 |
commit | 1ab7d71e314353ecfdb961b80fcef64db5cd5a64 (patch) | |
tree | 0ba4bc8d1ebc68105554e751f8db95e8ebcd561d /input | |
parent | 1a2fe3da0d4ef08e9bb17e576a14f5401e14ba8d (diff) | |
download | mpv-1ab7d71e314353ecfdb961b80fcef64db5cd5a64.tar.bz2 mpv-1ab7d71e314353ecfdb961b80fcef64db5cd5a64.tar.xz |
fix "Unknown argument" with cmd containing spaces
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14682 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r-- | input/input.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index f919a9ad4c..5c8a025e17 100644 --- a/input/input.c +++ b/input/input.c @@ -633,6 +633,7 @@ mp_input_parse_cmd(char* str) { cmd->args[i].v.s = (char*)malloc((l+1)*sizeof(char)); strncpy(cmd->args[i].v.s,start,l); cmd->args[i].v.s[l] = '\0'; + if(term != ' ') ptr += l+2; } break; case -1: ptr = NULL; |