summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fitz/base_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/base_hash.c b/fitz/base_hash.c
index cd866041..36533cc1 100644
--- a/fitz/base_hash.c
+++ b/fitz/base_hash.c
@@ -109,7 +109,7 @@ fz_resizehash(fz_hashtable *table, int newsize)
}
table->ents = fz_malloc(sizeof(fz_hashentry) * newsize);
- memset(table->ents, 0, sizeof(fz_hashentry) * table->size);
+ memset(table->ents, 0, sizeof(fz_hashentry) * newsize);
table->size = newsize;
table->load = 0;