aboutsummaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'libstore')
-rw-r--r--libstore/zero.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstore/zero.c b/libstore/zero.c
index 878b2271..2960c18a 100644
--- a/libstore/zero.c
+++ b/libstore/zero.c
@@ -151,7 +151,7 @@ zero_open (const char *name, int flags,
else
{
store_offset_t max_offs = ~((store_offset_t)1
- << (CHAR_BIT * sizeof (store_offset_t) - 1));
+ << (CHAR_BIT * sizeof (store_offset_t) - 2));
return store_zero_create (max_offs, flags, store);
}
}