From: Florian Dold Date: Fri, 19 Jul 2013 11:12:16 +0000 (+0000) Subject: - fixed malloc size X-Git-Tag: initial-import-from-subversion-38251~8162 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1db00201b20563df2ae1503693486b02b87eb152;p=oweals%2Fgnunet.git - fixed malloc size --- diff --git a/src/set/ibf.c b/src/set/ibf.c index e3c5be59a..45b852f78 100644 --- a/src/set/ibf.c +++ b/src/set/ibf.c @@ -80,8 +80,8 @@ ibf_create (uint32_t size, uint8_t hash_num) ibf = GNUNET_malloc (sizeof (struct InvertibleBloomFilter)); ibf->count = GNUNET_malloc (size * sizeof (uint8_t)); - ibf->key_sum = GNUNET_malloc (size * sizeof (struct GNUNET_HashCode)); - ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct GNUNET_HashCode)); + ibf->key_sum = GNUNET_malloc (size * sizeof (struct IBF_Key)); + ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct IBF_KeyHash)); ibf->size = size; ibf->hash_num = hash_num;