summaryrefslogtreecommitdiffstats
path: root/usr.bin/from/from.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/from/from.c')
-rw-r--r--usr.bin/from/from.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/from/from.c b/usr.bin/from/from.c
index de62057..8d20ad5 100644
--- a/usr.bin/from/from.c
+++ b/usr.bin/from/from.c
@@ -66,7 +66,7 @@ main(argc, argv)
#endif
file = sender = NULL;
- while ((ch = getopt(argc, argv, "f:s:?")) != EOF)
+ while ((ch = getopt(argc, argv, "f:s:?")) != -1)
switch((char)ch) {
case 'f':
file = optarg;
OpenPOWER on IntegriCloud