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 d32d7f15..8ad9f2e8 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -68,7 +68,7 @@ attach_shm(int shmkey, int shmsize)
void
attach_SHM(void)
{
- SHM = attach_shm(SHM_KEY, sizeof(SHM_t));
+ SHM = attach_shm(SHM_KEY, SHMSIZE);
if(SHM->version != SHM_VERSION) {
fprintf(stderr, "Error: SHM->version(%d) != SHM_VERSION(%d)\n", SHM->version, SHM_VERSION);
fprintf(stderr, "Please use the source code version corresponding to SHM,\n"