]> code.citadel.org Git - citadel.git/blobdiff - citadel/routines2.c
Lotsa stuff. See the changeLog for more details.
[citadel.git] / citadel / routines2.c
index 22476816a951eb131e341f1f08faa6ddd82a93cc..01364065c300e33b27796cd6cda40f4ccc4725f0 100644 (file)
@@ -576,7 +576,7 @@ void read_bio(void) {
  */
 void do_system_configuration(void) {
        char buf[256];
-       char sc[18][256];
+       char sc[19][256];
        int expire_mode = 0;
        int expire_value = 0;
        int a;
@@ -590,7 +590,7 @@ void do_system_configuration(void) {
        if (buf[0] == '1') {
                a = 0;
                while (serv_gets(buf), strcmp(buf, "000")) {
-                       if (a<18) strcpy(&sc[a][0], buf);
+                       if (a<19) strcpy(&sc[a][0], buf);
                        ++a;
                        }
                }
@@ -638,6 +638,7 @@ void do_system_configuration(void) {
        strprompt("Server-to-server networking password", &sc[15][0], 19);
        strprompt("Default user purge time (days)", &sc[16][0], 5);
        strprompt("Default room purge time (days)", &sc[17][0], 5);
+       strprompt("Name of room to log pages", &sc[18][0], ROOMNAMELEN);
 
        /* Angels and demons dancing in my head... */
        do {
@@ -672,7 +673,7 @@ void do_system_configuration(void) {
                serv_puts("CONF set");
                serv_gets(buf);
                if (buf[0] == '4') {
-                       for (a=0; a<18; ++a) serv_puts(&sc[a][0]);
+                       for (a=0; a<19; ++a) serv_puts(&sc[a][0]);
                        serv_puts("000");
                        }