diff options
author | John Kohl <jtkohl@mit.edu> | 1988-10-25 10:08:34 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-10-25 10:08:34 +0000 |
commit | fd996e36f45c9f125ed5b48a062dbc13afb9b09e (patch) | |
tree | a7b4ffa0259378ac572bcf956fcd4c7d9fdf012e /zhm | |
parent | 8f0c6e3acb2ac2390f16510f9b2f2126812140b9 (diff) |
fix optind handling
Diffstat (limited to 'zhm')
-rw-r--r-- | zhm/zhm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |