is >= 1, not just > 1.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6775
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Sep 13 13:57:40 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * resolve.c (main): Fix fencepost error; use argv[1] to test for a
+ specfied host if argc is >= 1, not just > 1.
Wed Jul 12 12:32:14 EDT 1995 Paul Park (pjpark@mit.edu)
* Makefile.in - Add LD_LIBRARY_PATH in case we were linked with shared
argc--; argv++;
}
- if (argc > 1) {
+ if (argc >= 1) {
strncpy(myname, *argv, MAXHOSTNAMELEN);
} else {
if(gethostname(myname, MAXHOSTNAMELEN)) {