summaryrefslogtreecommitdiff
path: root/zhm
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-10-25 10:08:34 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-10-25 10:08:34 +0000
commitfd996e36f45c9f125ed5b48a062dbc13afb9b09e (patch)
treea7b4ffa0259378ac572bcf956fcd4c7d9fdf012e /zhm
parent8f0c6e3acb2ac2390f16510f9b2f2126812140b9 (diff)
fix optind handling
Diffstat (limited to 'zhm')
-rw-r--r--zhm/zhm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zhm/zhm.c b/zhm/zhm.c
index fc65c61..c74b2d3 100644
--- a/zhm/zhm.c
+++ b/zhm/zhm.c
@@ -95,7 +95,7 @@ char *argv[];
}
/* Override server argument? */
- if (optind <= argc) {
+ if (optind < argc) {
(void)strcpy(prim_serv, argv[optind]);
if ((hp = gethostbyname(prim_serv)) == NULL) {
printf("Unknown server name: %s\n", prim_serv);