aboutsummaryrefslogtreecommitdiff
path: root/opcodes/cgen-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/cgen-dis.c')
-rw-r--r--opcodes/cgen-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/cgen-dis.c b/opcodes/cgen-dis.c
index 384fe5c..9ed8a0a 100644
--- a/opcodes/cgen-dis.c
+++ b/opcodes/cgen-dis.c
@@ -70,7 +70,7 @@ build_dis_hash_table ()
dis_hash_table = (CGEN_INSN_LIST **)
xmalloc (hash_size * sizeof (CGEN_INSN_LIST *)
- + count * sizeof (CGEN_INSN_LIST *));
+ + count * sizeof (CGEN_INSN_LIST));
memset (dis_hash_table, 0,
hash_size * sizeof (CGEN_INSN_LIST *)
+ count * sizeof (CGEN_INSN_LIST));