From 5319009dfe90c32f73c1400d265c59adaf89f5d4 Mon Sep 17 00:00:00 2001 From: ulion Date: Mon, 10 Dec 2007 01:46:02 +0000 Subject: Ignore heading spaces when parsing command. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25331 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'input') diff --git a/input/input.c b/input/input.c index e92cc3f13c..21df78b16f 100644 --- a/input/input.c +++ b/input/input.c @@ -719,6 +719,10 @@ mp_input_parse_cmd(char* str) { assert(str != NULL); #endif + // Ignore heading spaces. + while (str[0] == ' ' || str[0] == '\t') + ++str; + if (strncmp(str, "pausing ", 8) == 0) { pausing = 1; str = &str[8]; -- cgit v1.2.3