OSDN Git Service

(add_eh_table_entry): Multiply realloc size by sizeof int.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Aug 1996 02:07:44 +0000 (02:07 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Aug 1996 02:07:44 +0000 (02:07 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12678 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/except.c

index 48b635b..64946d3 100644 (file)
@@ -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");
        }