summaryrefslogtreecommitdiff
path: root/zhm
diff options
context:
space:
mode:
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);