Commit abf3bf38 by Jim Wilson

(add_eh_table_entry): Multiply realloc size by sizeof int.

From-SVN: r12678
parent d8b79470
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment