* Server support for hostnames up to 63 characters
authorMichael Hampton <io_error@uncensored.citadel.org>
Fri, 28 Dec 2001 09:28:05 +0000 (09:28 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Fri, 28 Dec 2001 09:28:05 +0000 (09:28 +0000)
citadel/ChangeLog
citadel/citserver.c
citadel/serv_rwho.c
citadel/server.h

index b02a3a5afdeca96e909680d837ffb44ec7174bbe..decba3629d2edb24cb7e1f073d2d6fa92a6a1e61 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 590.19  2001/12/28 09:28:04  error
+ * Server support for hostnames up to 63 characters
+
  Revision 590.18  2001/12/26 05:01:30  ajc
  * Added a new developer ID for Anticlimactic Teleservices
 
@@ -3005,4 +3008,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 c03f9cdfe6f2f1f9b5dc83e81e82e3f988a3a99c..c721e963cd82fade92b88d3433ddb27381fa60ab 100644 (file)
@@ -460,7 +460,7 @@ void cmd_iden(char *argbuf)
                }
                else {
                        safestrncpy(CC->cs_host, from_host, sizeof CC->cs_host);
-                       CC->cs_host[24] = 0;
+                       CC->cs_host[sizeof CC->cs_host - 1] = 0;
                }
        }
 
index 582e1fd5b25c57affae687bac550a7fae02f469d..f7d0be3ab86eeed210ec08ee7d877ca7700eb8d5 100644 (file)
@@ -59,7 +59,7 @@ void cmd_rwho(char *argbuf) {
        int aide;
        char un[40];
        char real_room[ROOMNAMELEN], room[ROOMNAMELEN];
-       char host[40], flags[5];
+       char host[64], flags[5];
        
        aide = CC->usersupp.axlevel >= 6;
        cprintf("%d%c \n", LISTING_FOLLOWS, CtdlCheckExpress() );
index cf2dc329a87067c99bbf64af0a252a46be83e82c..5dbc22b70868e35588b85c2c1dbb288b8e3320cb 100644 (file)
@@ -106,7 +106,7 @@ struct CitContext {
        int cs_clienttyp;       /* client type code */
        int cs_clientver;       /* client version number */
        char cs_clientname[32]; /* name of client software */
-       char cs_host[26];       /* host logged in from */
+       char cs_host[64];       /* host logged in from */
 
        /* Beginning of cryptography - session nonce */
        char cs_nonce[NONCE_SIZE];      /* The nonce for this session's next auth transaction */