From f360f492d6c73197890eeb86759d417b23b52452 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 15 Sep 2012 01:44:56 +0200 Subject: commands: fix parsing bug When tabs are used as whitespace between command and the first string parameter, the string is not correctly terminated. --- input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input.c b/input/input.c index 7f9021e35b..54be75c439 100644 --- a/input/input.c +++ b/input/input.c @@ -794,7 +794,7 @@ mp_cmd_t *mp_input_parse_cmd(char *str) "unterminated.\n", cmd_def->name, i + 1); goto error; } - if (*ptr == term) + if (*ptr == term || (*ptr == '\t' && term == ' ')) break; if (*ptr == '\\') ptr++; -- cgit v1.2.3