* More server support for hostnames up to 63 characters (oops I missed a spot)
authorMichael Hampton <io_error@uncensored.citadel.org>
Fri, 28 Dec 2001 11:06:53 +0000 (11:06 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Fri, 28 Dec 2001 11:06:53 +0000 (11:06 +0000)
citadel/ChangeLog
citadel/locate_host.c

index 08260b88564e5feaa798b8a828ae2881c577bf7d..e8e3f976ccb41408e3c6d084936289c224cc0580 100644 (file)
@@ -1,4 +1,7 @@
  $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.
@@ -3012,4 +3015,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
-
index e71b0cd14576cffac119a8458c21eddb25d10f68..1ca321e330e1d4516b1dbae0323ae4f84d9d50af 100644 (file)
@@ -63,7 +63,7 @@ void locate_host(char *tbuf, const struct in_addr *addr)
        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
@@ -75,6 +75,6 @@ void locate_host(char *tbuf, const struct in_addr *addr)
        end_critical_section(S_NETDB);
 #endif
 
-       tbuf[25] = 0;
+       tbuf[63] = 0;
        lprintf(9, "locate_host() exiting\n");
 }