Commit 2dce98d7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

do_set_presentation and do_set_motd now sets kom_errno to KOM_MARK_LIMIT

where appropriate.
parent e0943b5c
......@@ -821,8 +821,9 @@ do_set_presentation(Conf_no conf_no,
GET_T_STAT(new_pres, text_no, FAILURE);
if ( new_pres->no_of_marks >= MAX_MARKS_TEXT )
{
log(
"LIMIT: do_set_presentation(): New presentation very marked.\n");
log("LIMIT: do_set_presentation(%d, ptr, %d): New presentation"
" has %d marks.\n", conf_no, text_no, new_pres->no_of_marks);
kom_errno = KOM_MARK_LIMIT;
return FAILURE;
}
}
......@@ -877,8 +878,9 @@ do_set_etc_motd(Conf_no conf_no,
GET_T_STAT(new_motd, text_no, FAILURE);
if ( new_motd->no_of_marks >= MAX_MARKS_TEXT )
{
log(
"LIMIT: do_set_motd(): New motd very marked.\n");
log("LIMIT: do_set_motd(%d, ptr, %d): New motd has %d marks.\n",
conf_no, text_no, new_motd->no_of_marks);
kom_errno = KOM_MARK_LIMIT;
return FAILURE;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment