]> code.citadel.org Git - citadel.git/blobdiff - textclient/citadel.c
Truncate username display to 25 characters so it doesn't overrun the column
[citadel.git] / textclient / citadel.c
index 534f721e360d6ef58775a70372f41e2d2278d2c6..0bab0a56630a54eb7586c970e22c94e9fba1e8d4 100644 (file)
@@ -1,6 +1,6 @@
 // Main source module for the client program.
 //
-// Copyright (c) 1987-2019 by the citadel.org team
+// Copyright (c) 1987-2022 by the citadel.org team
 //
 // This program is open source software.  Use, duplication, and/or
 // disclosure are subject to the GNU General Purpose License version 3.
@@ -160,7 +160,7 @@ void formout(CtdlIPC * ipc, char *name)
 
 void userlist(CtdlIPC * ipc, char *patn) {
        char buf[SIZ];
-       char fl[SIZ];
+       char fl[26];            // a buffer this small will prevent it overrunning the column
        struct tm tmbuf;
        time_t lc;
        int r;                  // IPC response code
@@ -1376,7 +1376,6 @@ int main(int argc, char **argv) {
        char argbuf[64];        /* command line buf */
        char *telnet_client_host = NULL;
        char *sptr, *sptr2;     /* USed to extract the nonce */
-       char hexstring[MD5_HEXSTRING_SIZE];
        char password[SIZ];
        struct ctdlipcmisc chek;
        struct ctdluser *myself = NULL;
@@ -1472,7 +1471,7 @@ int main(int argc, char **argv) {
                logoff(ipc, atoi(aaa));
        }
 
-#ifdef HAVE_OPENSSL
+#ifdef HAVE_OPENSSLLLLLL
        /* Evaluate encryption preferences */
        if (arg_encrypt != RC_NO && rc_encrypt != RC_NO) {
                if (!ipc->isLocal || arg_encrypt == RC_YES || rc_encrypt == RC_YES) {