From 2665414b4ec88df426cdaf61829ae19f0ee94647 Mon Sep 17 00:00:00 2001 From: fc_botelho Date: Tue, 25 Mar 2008 20:44:12 +0000 Subject: [PATCH] *** empty log message *** --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 6059cf0..a39dbd4 100644 --- a/src/main.c +++ b/src/main.c @@ -279,8 +279,8 @@ int main(int argc, char **argv) return -1; } cmph_uint32 siz = cmph_size(mphf); - hashtable = (cmph_uint8*)malloc(source->nkeys*sizeof(cmph_uint8)); - memset(hashtable, 0, source->nkeys); + hashtable = (cmph_uint8*)malloc(siz*sizeof(cmph_uint8)); + memset(hashtable, 0, siz); //check all keys for (i = 0; i < source->nkeys; ++i) {