diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-11-23 21:38:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-11-23 21:38:12 +0000 |
commit | 394f764e7d059e979f72ba88c31f4fa94a252ebf (patch) | |
tree | 3663c1184286a33a63f1cc88cebe4c7a79f38314 /cat.c | |
parent | cb41c2e83b9e9997b9737d7061d53f7c11a463a8 (diff) | |
download | busybox-394f764e7d059e979f72ba88c31f4fa94a252ebf.tar.gz |
Stuf
Diffstat (limited to 'cat.c')
-rw-r--r-- | cat.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -49,14 +49,12 @@ extern int cat_main(int argc, char **argv) argv++; while (argc-- > 0) { - file = fopen(*argv, "r"); + file = fopen(*(argv++), "r"); if (file == NULL) { perror(*argv); exit(FALSE); } print_file( file); - argc--; - argv++; } exit(TRUE); } |