summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-15 10:04:38 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-15 10:04:38 +0800
commit4c520550cca32522e89fe01e2e0d3d172ed6b86d (patch)
tree60fc322c61a50438a8043e8cd48c845a5ee41ea7 /mbbsd/bbs.c
parenta942aaef1cdde595f482a853e6a1291c04b9d2c7 (diff)
downloadpttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar
pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.gz
pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.bz2
pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.lz
pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.xz
pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.tar.zst
pttbbs-4c520550cca32522e89fe01e2e0d3d172ed6b86d.zip
- bbs: fix utmp_brcid out-of-sync on 's' select.
- visio: change unified handle (VSOREF) to typed ref, and utilize new APIs git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4165 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 035bc8a6..9c165bc0 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -4084,8 +4084,12 @@ ReadSelect(void)
Read();
changed = 1;
}
- // no need to set utmpbid here...
- // setutmpbid(0);
+ // need to set utmpbid here...
+ // because Read() just restores settings.
+ // and 's' directly calls here.
+ // so if we don't reset then utmpbid will be out-of-sync.
+ // fix someday...
+ setutmpbid(0);
currutmp->mode = mode0;
currstat = stat0;
return changed;