changeset 14681:f6d4ef286a6b

fix "Unknown argument" with cmd containing spaces
author aurel
date Fri, 11 Feb 2005 11:44:00 +0000
parents 7422f9b6be5c
children 36e7e49d9d39
files input/input.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Thu Feb 10 10:01:31 2005 +0000
+++ b/input/input.c	Fri Feb 11 11:44:00 2005 +0000
@@ -633,6 +633,7 @@
       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;