http://sourceware.org/bugzilla/show_bug.cgi?id=9741 diff --git a/nscd/mem.c b/nscd/mem.c index e821729..1f7215e 100644 --- nscd/mem.c +++ nscd/mem.c @@ -163,7 +163,7 @@ gc (struct database_dyn *db) else { he = xmalloc (memory_needed); - he_data = &he[db->head->nentries * sizeof (struct hashentry *)]; + he_data = &he[db->head->nentries]; he_use_malloc = true; }