projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b7947
)
(add_eh_table_entry): Multiply realloc size by sizeof int.
author
Jim Wilson
<wilson@gcc.gnu.org>
Fri, 30 Aug 1996 02:07:44 +0000
(19:07 -0700)
committer
Jim Wilson
<wilson@gcc.gnu.org>
Fri, 30 Aug 1996 02:07:44 +0000
(19:07 -0700)
From-SVN: r12678
gcc/except.c
patch
|
blob
|
history
diff --git
a/gcc/except.c
b/gcc/except.c
index 48b635b5ad225ecc915df0a2de3bc979c512e404..64946d34266cd257bd3309dbd25994846fc06184 100644
(file)
--- 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");
}