diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/venti/srv/icache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/venti/srv/icache.c b/src/cmd/venti/srv/icache.c index 3663345d..700da754 100644 --- a/src/cmd/venti/srv/icache.c +++ b/src/cmd/venti/srv/icache.c @@ -68,8 +68,8 @@ mkihash(int size1) size <<= 1; } - ih = vtmallocz(sizeof(IHash)+size*sizeof(ih->table[0])); - ih->table = (IEntry**)(ih+1); + ih = vtmallocz(sizeof(IHash)); + ih->table = vtmallocz(size * sizeof(ih->table[0])); ih->bits = bits; ih->size = size; return ih; |