diff options
author | 2006-09-20 00:21:40 +1000 | |
---|---|---|
committer | 2006-09-20 00:21:40 +1000 | |
commit | 81d61c467b2fc42e7e890198fb2bd203b27aff44 (patch) | |
tree | 07de6d141a8e3a641d244a1d1c11910566d53950 /builtin.c | |
parent | e91e3b65933d7b47a5f498ee1c956b49aa6426f3 (diff) |
Fix bug in for that causes crash on syntax error
darcs-hash:20060919142140-ac50b-48cbbdfd109e2b420d8e36acd5b13696445c0850.gz
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2455,8 +2455,8 @@ static int builtin_for( wchar_t **argv ) { sb_printf( sb_err, _( L"%ls: Expected at least two arguments, got %d\n"), - argc , - argv[0] ); + argv[0] , + argc ); builtin_print_help( argv[0], sb_err ); } else if ( wcsvarname(argv[1]) ) |