Fix bug that broke pipe redirection

darcs-hash:20051008002308-ac50b-2ce030f667607032bb13fc16f62e1b931bfdf77d.gz
This commit is contained in:
axel 2005-10-08 10:23:08 +10:00
parent b867fc2b71
commit 47b174fa68

View file

@ -531,7 +531,7 @@ void tok_next( tokenizer *tok )
if( iswdigit( *tok->buff ) )
{
wchar_t *orig = tok->buff;
int fd = 0;
while( iswdigit( *tok->buff ) )
@ -548,7 +548,7 @@ void tok_next( tokenizer *tok )
}
check_size( tok, 16 );
tok->buff++;
swprintf( tok->buff, 16, L"%d", fd );
swprintf( tok->last, 16, L"%d", fd );
tok->last_type = TOK_PIPE;
return;
}