summaryrefslogtreecommitdiff
path: root/lib/ntdb/test/run-30-exhaust-before-expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ntdb/test/run-30-exhaust-before-expand.c')
-rw-r--r--lib/ntdb/test/run-30-exhaust-before-expand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ntdb/test/run-30-exhaust-before-expand.c b/lib/ntdb/test/run-30-exhaust-before-expand.c
index 24c48b005a..cc9ea3fa3d 100644
--- a/lib/ntdb/test/run-30-exhaust-before-expand.c
+++ b/lib/ntdb/test/run-30-exhaust-before-expand.c
@@ -50,7 +50,7 @@ int main(int argc, char *argv[])
size = ntdb->file->map_size;
/* Create one record to chew up most space. */
- d.dsize = size - sizeof(struct new_database) - 32;
+ d.dsize = size - NEW_DATABASE_HDR_SIZE(ntdb->hash_bits) - 32;
d.dptr = calloc(d.dsize, 1);
j = 0;
ok1(ntdb_store(ntdb, k, d, NTDB_INSERT) == 0);