From e6fbea9527a9e62cb34439886a86963d49c7c611 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 6 Dec 2013 13:05:59 +0000 Subject: [PATCH] Fix 'classic' sizeof(pointer) error. --- src/statfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statfile.c b/src/statfile.c index 35dd54172..9df60fd56 100644 --- a/src/statfile.c +++ b/src/statfile.c @@ -235,7 +235,7 @@ statfile_pool_reindex (statfile_pool_t * pool, gchar *filename, size_t old_size, } pos = map + (sizeof (struct stat_file) - sizeof (struct stat_file_block)); - while (old_size - (pos - map) >= sizeof (block)) { + while (old_size - (pos - map) >= sizeof (struct stat_file_block)) { block = (struct stat_file_block *)pos; if (block->hash1 != 0 && block->value != 0) { statfile_pool_set_block_common (pool, new, block->hash1, block->hash2, 0, block->value, FALSE); -- 2.39.5