]> code.citadel.org Git - citadel.git/commitdiff
* Fixed a small client bug in the purge hour setting
authorArt Cancro <ajc@citadel.org>
Wed, 30 Jul 2003 03:54:35 +0000 (03:54 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 30 Jul 2003 03:54:35 +0000 (03:54 +0000)
citadel/ChangeLog
citadel/routines2.c

index 4d99ea5e560911a7456f90374ed238c70f293a96..6180768927864a2e7e995fd4cbb69f74fc73849c 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 608.14  2003/07/30 03:54:34  ajc
+ * Fixed a small client bug in the purge hour setting
+
  Revision 608.13  2003/07/30 03:47:53  ajc
  * Eliminated the EXPI command
  * Completed the configuration item of "purge hour"
@@ -4924,3 +4927,4 @@ 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 b78f4e6af24705a7cc36b981e535c63096ac001e..c0c7478aae286116b00bf24e64ac9894b7463f22 100644 (file)
@@ -639,7 +639,7 @@ void read_bio(CtdlIPC *ipc)
 void do_system_configuration(CtdlIPC *ipc)
 {
        char buf[SIZ];
-       char sc[31][SIZ];
+       char sc[32][SIZ];
        char *resp = NULL;
        struct ExpirePolicy *expirepolicy = NULL;
        int a;
@@ -656,7 +656,7 @@ void do_system_configuration(CtdlIPC *ipc)
                while (strlen(resp)) {
                        extract_token(buf, resp, 0, '\n');
                        remove_token(resp, 0, '\n');
-                       if (a < 31) {
+                       if (a < 32) {
                                strcpy(&sc[a][0], buf);
                        }
                        ++a;
@@ -775,19 +775,19 @@ void do_system_configuration(CtdlIPC *ipc)
                strprompt("Keep messages for how many days?", buf, 10);
                expirepolicy->expire_value = atol(buf);
        }
-       strprompt("Hour to run purges (0-23)", &sc[31][0], 4);
+       strprompt("Hour to run purges (0-23)", &sc[31][0], 2);
        /* Save it */
        scr_printf("Save this configuration? ");
        if (yesno()) {
                r = 1;
-               for (a = 0; a < 31; a++)
+               for (a = 0; a < 32; a++)
                        r += 1 + strlen(sc[a]);
                resp = (char *)calloc(1, r);
                if (!resp) {
                        err_printf("Can't save config - out of memory!\n");
                        logoff(ipc, 1);
                }
-               for (a = 0; a < 31; a++) {
+               for (a = 0; a < 32; a++) {
                        strcat(resp, sc[a]);
                        strcat(resp, "\n");
                }