diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1997-04-07 19:45:47 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1997-04-07 19:45:47 +0000 |
commit | 21b4ac17687ab852b5159de7bd120aa2b7713567 (patch) | |
tree | 2697df52cf7615da52a670b646447029a078bba5 /opcodes/cgen-dis.c | |
parent | 70bb1aa163ad2e4aa8a85369bf08515ad5044458 (diff) | |
download | gdb-21b4ac17687ab852b5159de7bd120aa2b7713567.zip gdb-21b4ac17687ab852b5159de7bd120aa2b7713567.tar.gz gdb-21b4ac17687ab852b5159de7bd120aa2b7713567.tar.bz2 |
* cgen-dis.c (build_dis_hash_table): Fix xmalloc size computation.
Diffstat (limited to 'opcodes/cgen-dis.c')
-rw-r--r-- | opcodes/cgen-dis.c | 2 |
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)); |