From cd63f9b25ac8533aa76ba2b34b7bc4da7f4c5556 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 2 Sep 2003 15:05:34 +0000 Subject: [PATCH] * Repaired an incorrect adjustment of floor reference counts when a room was moved to a different floor. (Thanks to Winzlo for reporting this.) --- citadel/ChangeLog | 5 +++++ citadel/room_ops.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 4e31b1153..07159e8a9 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,8 @@ $Log$ + Revision 610.7 2003/09/02 15:05:34 ajc + * Repaired an incorrect adjustment of floor reference counts when a room was + moved to a different floor. (Thanks to Winzlo for reporting this.) + Revision 610.6 2003/09/02 14:49:05 ajc * Improve client chat mode reliability and performance by assuming that all server output will be in complete lines. (This is a safe assumption.) @@ -4990,3 +4994,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/room_ops.c b/citadel/room_ops.c index efb410502..69b8a77c9 100644 --- a/citadel/room_ops.c +++ b/citadel/room_ops.c @@ -1193,9 +1193,11 @@ int CtdlRenameRoom(char *old_name, char *new_name, int new_floor) { lgetfloor(&flbuf, old_floor); --flbuf.f_ref_count; lputfloor(&flbuf, old_floor); - lgetfloor(&flbuf, CC->room.QRfloor); + lprintf(9, "Reference count for floor %d is now %d\n", old_floor, flbuf.f_ref_count); + lgetfloor(&flbuf, new_floor); ++flbuf.f_ref_count; - lputfloor(&flbuf, CC->room.QRfloor); + lputfloor(&flbuf, new_floor); + lprintf(9, "Reference count for floor %d is now %d\n", new_floor, flbuf.f_ref_count); } /* ...and everybody say "YATTA!" */ -- 2.39.2