diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-06 13:05:59 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-06 13:05:59 +0000 |
commit | e6fbea9527a9e62cb34439886a86963d49c7c611 (patch) | |
tree | 6e096d397c85feb483abc5a09a4a4e0fa47a0e6a /src/statfile.c | |
parent | f0d8afe9944ebdcf019e9b746b5dc58bbb459787 (diff) | |
download | rspamd-e6fbea9527a9e62cb34439886a86963d49c7c611.tar.gz rspamd-e6fbea9527a9e62cb34439886a86963d49c7c611.zip |
Fix 'classic' sizeof(pointer) error.
Diffstat (limited to 'src/statfile.c')
-rw-r--r-- | src/statfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |