diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1996-08-29 19:07:44 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1996-08-29 19:07:44 -0700 |
commit | abf3bf3863a047f5947f11e7a8376e8c27ba8435 (patch) | |
tree | 1bfd1e3e17954bf84464b533c0f1774eeefcd23b | |
parent | d8b794703c77dfb0ef50e9fad5b21e6407ae3f65 (diff) | |
download | gcc-abf3bf3863a047f5947f11e7a8376e8c27ba8435.zip gcc-abf3bf3863a047f5947f11e7a8376e8c27ba8435.tar.gz gcc-abf3bf3863a047f5947f11e7a8376e8c27ba8435.tar.bz2 |
(add_eh_table_entry): Multiply realloc size by sizeof int.
From-SVN: r12678
-rw-r--r-- | gcc/except.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/except.c b/gcc/except.c index 48b635b..64946d3 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -631,7 +631,8 @@ add_eh_table_entry (n) if (eh_table_max_size < 0) abort (); - if ((eh_table = (int *) realloc (eh_table, eh_table_max_size)) + if ((eh_table = (int *) realloc (eh_table, + eh_table_max_size * sizeof (int))) == 0) fatal ("virtual memory exhausted"); } |