changeset 25303:9139c368a493

Ignore heading spaces when parsing command.
author ulion
date Mon, 10 Dec 2007 01:46:02 +0000
parents 701de923a20d
children fb719ee583b5
files input/input.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Mon Dec 10 01:43:33 2007 +0000
+++ b/input/input.c	Mon Dec 10 01:46:02 2007 +0000
@@ -719,6 +719,10 @@
   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];