since otherwise a numeric IP address won't fit.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11169
dc483132-0cff-0310-8789-
dd5450dbe970
Thu Feb 11 22:24:03 1999 Tom Yu <tlyu@mit.edu>
+ * sane_hostname.c: Force maxlen to be 16 if it's less than 16,
+ since otherwise a numeric IP address won't fit.
+
* Makefile.in: Add sane_hostname.{o,c}; bump minor version.
* libpty.h: Add prototype for make_sane_hostname.
*out = NULL;
if (maxlen && maxlen < 16)
- return -1; /* XXX */
+ /* assume they meant 16, otherwise IP addr won't fit */
+ maxlen = 16;
#ifndef NO_UT_HOST
ut_host_len = sizeof (ut.ut_host);
#else