aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-08 10:23:08 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-08 10:23:08 +1000
commit47b174fa68e12c0b7a72ee1c6c5b4b34f2d8af96 (patch)
tree53d5f191ec6ad74dfbba5784389d17e988258519 /tokenizer.c
parentb867fc2b71941368faf544708e02ff28ea99255c (diff)
Fix bug that broke pipe redirection
darcs-hash:20051008002308-ac50b-2ce030f667607032bb13fc16f62e1b931bfdf77d.gz
Diffstat (limited to 'tokenizer.c')
-rw-r--r--tokenizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokenizer.c b/tokenizer.c
index 021c428f..5f006ee2 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;
}