$Log$
+ Revision 590.21 2001/12/28 11:06:53 error
+ * More server support for hostnames up to 63 characters (oops I missed a spot)
+
Revision 590.20 2001/12/28 09:39:10 error
* Client support for hostnames up to 63 characters: truncated at 24 in
short who list, full display in long who list.
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
for (; *ch->h_addr_list; ch->h_addr_list++)
if (!memcmp(*ch->h_addr_list, addr,
sizeof *addr)) {
- safestrncpy(tbuf, ch->h_name, 25);
+ safestrncpy(tbuf, ch->h_name, 63);
goto end;
}
goto bad_dns; /* they were spoofing. report a numeric IP
end_critical_section(S_NETDB);
#endif
- tbuf[25] = 0;
+ tbuf[63] = 0;
lprintf(9, "locate_host() exiting\n");
}