]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_chat.c
* compatibility with Berkeley DB < 3.3
[citadel.git] / citadel / serv_chat.c
index 8c86c71772e0e117fb61c81946d689bdb483a6e3..17d62ce4c7bf06e5b71df82a9c559df094702590 100644 (file)
@@ -558,6 +558,7 @@ int send_express_message(char *lun, char *x_user, char *x_msg)
                                                malloc(sizeof(struct savelist));
                                        sptr->next = sl;
                                        MailboxName(sptr->roomname,
+                                                   sizeof sptr->roomname,
                                                &ccptr->usersupp, PAGELOGROOM);
                                        sl = sptr;
                                }
@@ -676,9 +677,9 @@ void cmd_sexp(char *argbuf)
 
                if (message_sent > 0) {
                        if (strlen(x_msg) > 0)
-                               cprintf("%d Message sent", OK);
+                               cprintf("%d Message sent", CIT_OK);
                        else
-                               cprintf("%d Ok to send message", OK);
+                               cprintf("%d Ok to send message", CIT_OK);
                        if (message_sent > 1)
                                cprintf(" to %d users", message_sent);
                        cprintf(".\n");
@@ -710,7 +711,7 @@ void cmd_dexp(char *argbuf)
        if ((new_state == 0) || (new_state == 1)) {
                CC->disable_exp = new_state;
                }
-       cprintf("%d %d\n", OK, CC->disable_exp);
+       cprintf("%d %d\n", CIT_OK, CC->disable_exp);
        }
 
 
@@ -746,7 +747,7 @@ void cmd_reqt(char *argbuf) {
                }
        }
        end_critical_section(S_SESSION_TABLE);
-       cprintf("%d Sent termination request to %d sessions.\n", OK, sessions);
+       cprintf("%d Sent termination request to %d sessions.\n", CIT_OK, sessions);
 }