]> gcc.gnu.org Git - gcc.git/commitdiff
(add_eh_table_entry): Multiply realloc size by sizeof int.
authorJim Wilson <wilson@gcc.gnu.org>
Fri, 30 Aug 1996 02:07:44 +0000 (19:07 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Fri, 30 Aug 1996 02:07:44 +0000 (19:07 -0700)
From-SVN: r12678

gcc/except.c

index 48b635b5ad225ecc915df0a2de3bc979c512e404..64946d34266cd257bd3309dbd25994846fc06184 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");
        }
This page took 0.067678 seconds and 5 git commands to generate.