Skip tabs in wcmd.
This commit is contained in:
parent
f09eb790c9
commit
3ec24a6ffd
|
@ -751,6 +751,7 @@ int p = 0;
|
||||||
*q = '\0';
|
*q = '\0';
|
||||||
break;
|
break;
|
||||||
case ' ':
|
case ' ':
|
||||||
|
case '\t':
|
||||||
s++;
|
s++;
|
||||||
break;
|
break;
|
||||||
case '"':
|
case '"':
|
||||||
|
@ -768,7 +769,7 @@ int p = 0;
|
||||||
case '\0':
|
case '\0':
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
while ((*s != '\0') && (*s != ' ')) {
|
while ((*s != '\0') && (*s != ' ') && (*s != '\t')) {
|
||||||
if (p == 0) *p1++ = *s++;
|
if (p == 0) *p1++ = *s++;
|
||||||
else if (p == 1) *p2++ = *s++;
|
else if (p == 1) *p2++ = *s++;
|
||||||
else s++;
|
else s++;
|
||||||
|
|
Loading…
Reference in New Issue