diff options
author | Doug Evans <dje@gnu.org> | 1994-06-15 23:23:33 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1994-06-15 23:23:33 +0000 |
commit | 0725d62132a544a72b6d8c1f9809b25e39ed00eb (patch) | |
tree | 74e737e57c43842c6344c63473f6e05542cfe80a | |
parent | 7ac4a26649ec8031e8ad83710ca32ca03f5a59b7 (diff) | |
download | gcc-0725d62132a544a72b6d8c1f9809b25e39ed00eb.zip gcc-0725d62132a544a72b6d8c1f9809b25e39ed00eb.tar.gz gcc-0725d62132a544a72b6d8c1f9809b25e39ed00eb.tar.bz2 |
(dbxout_type): Fix call to bzero.
From-SVN: r7496
-rw-r--r-- | gcc/dbxout.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index b2995c1..75b01d8 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -942,10 +942,11 @@ dbxout_type (type, full, show_arg_types) if (next_type_number == typevec_len) { - int len = typevec_len * 2 * sizeof typevec[0]; - - typevec = (enum typestatus *) xrealloc (typevec, len); - bzero ((char *) (typevec + typevec_len), len); + typevec = + (enum typestatus *) xrealloc (typevec, + typevec_len * 2 * sizeof typevec[0]); + bzero ((char *) (typevec + typevec_len), + typevec_len * sizeof typevec[0]); typevec_len *= 2; } } |