diff options
-rw-r--r-- | archival/tar.c | 2 | ||||
-rw-r--r-- | tar.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c index e205763..c82e51f 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -183,7 +183,7 @@ extern int tar_main(int argc, char **argv) usage(tar_usage); /* Parse any options */ - while (--argc > 0 && (**(++argv) != '\0')) { + while (--argc > 0 && **(++argv) == '-') { stopIt=FALSE; while (stopIt==FALSE && *(++(*argv))) { switch (**argv) { @@ -183,7 +183,7 @@ extern int tar_main(int argc, char **argv) usage(tar_usage); /* Parse any options */ - while (--argc > 0 && (**(++argv) != '\0')) { + while (--argc > 0 && **(++argv) == '-') { stopIt=FALSE; while (stopIt==FALSE && *(++(*argv))) { switch (**argv) { |