Truncate username display to 25 characters so it doesn't overrun the column
[citadel.git] / textclient / citadel.c
index c4d85b1f944b518349974bce75ac124e3219d948..0bab0a56630a54eb7586c970e22c94e9fba1e8d4 100644 (file)
@@ -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