summaryrefslogtreecommitdiff
path: root/usr.bin/tcopy
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
commit552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch)
tree219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /usr.bin/tcopy
parentbf6413046b73005ecca3f5352c8711d00a6d00b9 (diff)
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'usr.bin/tcopy')
-rw-r--r--usr.bin/tcopy/tcopy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c
index 23c8a367f53..631da628f23 100644
--- a/usr.bin/tcopy/tcopy.c
+++ b/usr.bin/tcopy/tcopy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcopy.c,v 1.2 1996/06/26 05:40:29 deraadt Exp $ */
+/* $OpenBSD: tcopy.c,v 1.3 1997/01/15 23:43:19 millert Exp $ */
/* $NetBSD: tcopy.c,v 1.4 1995/08/31 22:17:24 jtc Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)tcopy.c 8.3 (Berkeley) 1/23/95";
#endif
-static char rcsid[] = "$OpenBSD: tcopy.c,v 1.2 1996/06/26 05:40:29 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tcopy.c,v 1.3 1997/01/15 23:43:19 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -89,7 +89,7 @@ main(argc, argv)
char *buff, *inf;
guesslen = 1;
- while ((ch = getopt(argc, argv, "cs:vx")) != EOF)
+ while ((ch = getopt(argc, argv, "cs:vx")) != -1)
switch((char)ch) {
case 'c':
op = COPYVERIFY;