*/
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;
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;
}
}
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 {
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");
}