summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r--mbbsd/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 36b9346a..79197183 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -788,7 +788,7 @@ void buildBMcache(int bid) /* bid starts from 1 */
char s[IDLEN * 3 + 3], *ptr;
int i, uid;
- strlcpy(s, bcache[bid-1].BM, sizeof(s));
+ strlcpy(s, getbcache(bid)->BM, sizeof(s));
for( i = 0 ; s[i] != 0 ; ++i )
if( !isalpha((int)s[i]) && !isdigit((int)s[i]) )
s[i] = ' ';