commit | abc0f4f8f97b36f2865986374405d091cefea107 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Wed Dec 08 23:19:36 1999 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Wed Dec 08 23:19:36 1999 +0000 |
tree | ee7605752c6323682f0ef0879cc48f95bdf13e37 | |
parent | 2285f367e220af9bda9f544945007725a02032dd [diff] [blame] |
Latest and greatest
diff --git a/cat.c b/cat.c index 758a83e..0d32efe 100644 --- a/cat.c +++ b/cat.c
@@ -46,10 +46,9 @@ usage ("cat [file ...]\n"); } argc--; - argv++; - while (argc-- > 0) { - file = fopen(*(argv++), "r"); + while (argc-- > 0 && *(argv++) != '\0' && strlen(*argv) ) { + file = fopen(*argv, "r"); if (file == NULL) { perror(*argv); exit(FALSE);