summaryrefslogtreecommitdiff
path: root/coreutils/cat.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-23 21:38:12 +0000
committerEric Andersen <andersen@codepoet.org>1999-11-23 21:38:12 +0000
commit394f764e7d059e979f72ba88c31f4fa94a252ebf (patch)
tree3663c1184286a33a63f1cc88cebe4c7a79f38314 /coreutils/cat.c
parentcb41c2e83b9e9997b9737d7061d53f7c11a463a8 (diff)
downloadbusybox-w32-394f764e7d059e979f72ba88c31f4fa94a252ebf.tar.gz
busybox-w32-394f764e7d059e979f72ba88c31f4fa94a252ebf.tar.bz2
busybox-w32-394f764e7d059e979f72ba88c31f4fa94a252ebf.zip
Stuf
Diffstat (limited to 'coreutils/cat.c')
-rw-r--r--coreutils/cat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/cat.c b/coreutils/cat.c
index 1f4ef4af8..758a83e6b 100644
--- a/coreutils/cat.c
+++ b/coreutils/cat.c
@@ -49,14 +49,12 @@ extern int cat_main(int argc, char **argv)
49 argv++; 49 argv++;
50 50
51 while (argc-- > 0) { 51 while (argc-- > 0) {
52 file = fopen(*argv, "r"); 52 file = fopen(*(argv++), "r");
53 if (file == NULL) { 53 if (file == NULL) {
54 perror(*argv); 54 perror(*argv);
55 exit(FALSE); 55 exit(FALSE);
56 } 56 }
57 print_file( file); 57 print_file( file);
58 argc--;
59 argv++;
60 } 58 }
61 exit(TRUE); 59 exit(TRUE);
62} 60}