1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-14 10:55:43 +00:00

fix "Unknown argument" with cmd containing spaces

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14682 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
aurel 2005-02-11 11:44:00 +00:00
parent 1a2fe3da0d
commit 1ab7d71e31

View File

@ -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;