/* -*-c-*-
*
- * $Id: hash.c,v 1.2 2000/06/17 10:37:39 mdw Exp $
+ * $Id: hash.c,v 1.3 2000/07/16 12:29:16 mdw Exp $
*
* General hashtable infrastructure
*
/*----- Revision history --------------------------------------------------*
*
* $Log: hash.c,v $
+ * Revision 1.3 2000/07/16 12:29:16 mdw
+ * Change to arena `realloc' interface, to fix a design bug.
+ *
* Revision 1.2 2000/06/17 10:37:39 mdw
* Add support for arena management.
*
/* --- Allocate a new hash bin vector --- */
- if ((v = A_REALLOC(t->a, t->v, m * 2 * sizeof(hash_base *))) == 0) {
+ if ((v = A_REALLOC(t->a, t->v,
+ 2 * m * sizeof(hash_base *),
+ m * sizeof(hash_base *))) == 0) {
return (0);
}
t->v = v;