diff options
Diffstat (limited to 'bcache-super-show.c')
-rw-r--r-- | bcache-super-show.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bcache-super-show.c b/bcache-super-show.c index f645af6..61c28aa 100644 --- a/bcache-super-show.c +++ b/bcache-super-show.c @@ -70,8 +70,8 @@ int main(int argc, char **argv) exit(2); } - if (sb->keys) { - bytes = sizeof(*sb) + sb->keys * sizeof(uint64_t); + if (sb->u64s) { + bytes = sizeof(*sb) + sb->u64s * sizeof(uint64_t); sb = malloc(bytes); if (pread(fd, sb, bytes, SB_START) != bytes) { |