Commit a514d3ed authored by Per Cederqvist's avatar Per Cederqvist

(save_one_conf): Fixed a serious bug introduced 1997-10-23 when the

	(as yet unused) FASTSAVE code was written.  Changes made to
	conferences could in some cases be forgotten.
parent 45b965cd
/* /*
* $Id: simple-cache.c,v 0.85 1999/07/05 21:24:15 ceder Exp $ * $Id: simple-cache.c,v 0.86 1999/07/11 21:19:30 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association. * Copyright (C) 1991-1999 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#endif #endif
static const char * static const char *
rcsid = "$Id: simple-cache.c,v 0.85 1999/07/05 21:24:15 ceder Exp $"; rcsid = "$Id: simple-cache.c,v 0.86 1999/07/11 21:19:30 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -1955,9 +1955,9 @@ save_one_conf(void) ...@@ -1955,9 +1955,9 @@ save_one_conf(void)
#ifdef FASTSAVE #ifdef FASTSAVE
cn->saved_size = cn->size; cn->saved_size = cn->size;
cn->size = ftell(file_b) - cn->pos; cn->size = ftell(file_b) - cn->pos;
cn->s.dirty = 0;
#else #else
cn->size_b = ftell(file_b) - cn->pos_b; cn->size_b = ftell(file_b) - cn->pos_b;
cn->s.dirty = 0;
#endif #endif
} }
#ifdef FASTSAVE #ifdef FASTSAVE
......
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