aboutsummaryrefslogtreecommitdiff
path: root/cat.c
diff options
context:
space:
mode:
Diffstat (limited to 'cat.c')
-rw-r--r--cat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cat.c b/cat.c
index 1f4ef4af8..758a83e6b 100644
--- a/cat.c
+++ b/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}