From: Vsevolod Stakhov Date: Fri, 6 Dec 2013 13:05:59 +0000 (+0000) Subject: Fix 'classic' sizeof(pointer) error. X-Git-Tag: 0.6.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6fbea9527a9e62cb34439886a86963d49c7c611;p=thirdparty%2Frspamd.git Fix 'classic' sizeof(pointer) error. --- diff --git a/src/statfile.c b/src/statfile.c index 35dd541724..9df60fd56d 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);