Commit 6590d8e3 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(adjust_read): Fixed a fencepost error that was introduced in rev 0.34.

parent 36c3ef1e
/*
* $Id: membership.c,v 0.34 1998/07/26 16:45:50 ceder Exp $
* $Id: membership.c,v 0.35 1998/08/22 20:46:55 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -32,7 +32,7 @@
#define DEBUG_MARK_AS_READ
static const char *
rcsid = "$Id: membership.c,v 0.34 1998/07/26 16:45:50 ceder Exp $";
rcsid = "$Id: membership.c,v 0.35 1998/08/22 20:46:55 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -350,9 +350,11 @@ adjust_read( Membership * m,
Local_text_no prev;
#endif
/* (conf_min <= x < conf_max) if x is an existing local_text_no */
/* (conf_min <= x <= conf_max) if x is an existing local_text_no */
conf_min = l2g_next_key(&conf->texts, 0);
conf_max = l2g_first_appendable_key(&conf->texts);
if (conf_min == 0)
conf_min = l2g_first_appendable_key(&conf->texts);
conf_max = l2g_first_appendable_key(&conf->texts) - 1;
/* Flag all removed texts as read, if that is not already done. */
if (m->last_text_read < conf_min - 1)
......@@ -362,7 +364,7 @@ adjust_read( Membership * m,
for (handled = 0; handled < m->no_of_read
&& m->read_texts[handled] < m->last_text_read + 1; )
{
handled++;
handled++;
}
/* This loops advances m->last_text_read as far as possible,
......
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