* Client support for hostnames up to 63 characters
authorMichael Hampton <io_error@uncensored.citadel.org>
Fri, 28 Dec 2001 09:43:05 +0000 (09:43 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Fri, 28 Dec 2001 09:43:05 +0000 (09:43 +0000)
webcit/ChangeLog
webcit/locate_host.c

index 64fd5a04b1427e0c1c9d76c82bfbbedc069191d9..c03ca0b3e53dc4f82505043cfb617b2a22a71e19 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 322.1  2001/12/28 09:43:05  error
+* Client support for hostnames up to 63 characters
+
 Revision 322.0  2001/12/26 23:11:56  ajc
 * THIS IS 3.22
 
@@ -698,3 +701,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 87d1385aa092735be140ee9d199950a567386597..68715d49f898a02c18bd147f09f192e66ba9dc16 100644 (file)
@@ -50,6 +50,6 @@ void locate_host(char *tbuf, int client_socket)
                sprintf(tbuf, "%d.%d.%d.%d", a1, a2, a3, a4);
                return;
        }
-       strncpy(tbuf, ch->h_name, 24);
-       tbuf[24] = 0;
+       strncpy(tbuf, ch->h_name, 64);
+       tbuf[63] = 0;
 }