From 47b174fa68e12c0b7a72ee1c6c5b4b34f2d8af96 Mon Sep 17 00:00:00 2001 From: axel Date: Sat, 8 Oct 2005 10:23:08 +1000 Subject: [PATCH] Fix bug that broke pipe redirection darcs-hash:20051008002308-ac50b-2ce030f667607032bb13fc16f62e1b931bfdf77d.gz --- tokenizer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokenizer.c b/tokenizer.c index 021c428f3..5f006ee2d 100644 --- a/tokenizer.c +++ b/tokenizer.c @@ -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; }