* creating the room if necessary.
*/
create_room(PAGELOGROOM, 4, "", 0, 1, 0, VIEW_BBS);
- msgnum = CtdlSubmitMsg(logmsg, NULL, PAGELOGROOM);
+ msgnum = CtdlSubmitMsg(logmsg, NULL, PAGELOGROOM, 0);
/* Now save a copy in the global log room, if configured */
if (!IsEmptyStr(config.c_logpages)) {
SEND_LISTING, message_sent);
x_big_msgbuf = malloc(SIZ);
memset(x_big_msgbuf, 0, SIZ);
- while (client_getln(x_msg, sizeof x_msg),
- strcmp(x_msg, "000")) {
+ while (client_getln(x_msg, sizeof x_msg) >= 0 && strcmp(x_msg, "000")) {
x_big_msgbuf = realloc(x_big_msgbuf,
strlen(x_big_msgbuf) + strlen(x_msg) + 4);
if (!IsEmptyStr(x_big_msgbuf))