From 01064c490c48d953d56748958101cc39aae69fff Mon Sep 17 00:00:00 2001
From: andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Tue, 5 Sep 2000 18:21:53 +0000
Subject: Apply segfault on no-args fix from robotti@metconnect.com

git-svn-id: svn://busybox.net/trunk/busybox@1010 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 miscutils/mt.c | 2 +-
 mt.c           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/miscutils/mt.c b/miscutils/mt.c
index 087819e72..e77f58a6a 100644
--- a/miscutils/mt.c
+++ b/miscutils/mt.c
@@ -55,7 +55,7 @@ extern int mt_main(int argc, char **argv)
 	struct mtop op;
 	int fd;
 	
-	if ((argc != 2 && argc != 3) && **(argv + 1) != '-') {
+	if (argc < 2) {
 		usage(mt_usage);
 	}
 
diff --git a/mt.c b/mt.c
index 087819e72..e77f58a6a 100644
--- a/mt.c
+++ b/mt.c
@@ -55,7 +55,7 @@ extern int mt_main(int argc, char **argv)
 	struct mtop op;
 	int fd;
 	
-	if ((argc != 2 && argc != 3) && **(argv + 1) != '-') {
+	if (argc < 2) {
 		usage(mt_usage);
 	}
 
-- 
cgit v1.2.3-55-g6feb