* hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
authorIan Lance Taylor <ian@airs.com>
Mon, 10 May 1993 22:30:34 +0000 (22:30 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 10 May 1993 22:30:34 +0000 (22:30 +0000)
memory.

gdb/ChangeLog
gdb/hppa-tdep.c

index ad3302bf2a263370b2d29c47ac30584e333e3196..6efcba4031d457529bfa20d0a7b3fb582e1ff30b 100644 (file)
@@ -1,3 +1,8 @@
+Mon May 10 15:28:27 1993  Ian Lance Taylor  (ian@cygnus.com)
+
+       * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
+       memory.
+
 Mon May 10 13:14:46 1993  Fred Fish  (fnf@cygnus.com)
 
        * ch-exp.y (start):  Apply work-around to avoid bison warning.
index 65443b9eae6c6650f6e060bbe125d5c0f4d1f596..b174b0976661d714db4ed201df64a077d16099ae 100644 (file)
@@ -674,7 +674,7 @@ hppa_push_arguments (nargs, args, sp, struct_return, struct_addr)
      CORE_ADDR struct_addr;
 {
   /* array of arguments' offsets */
-  int *offset = (int *)alloca(nargs);
+  int *offset = (int *)alloca(nargs * sizeof (int));
   int cum = 0;
   int i, alignment;
   
This page took 0.02848 seconds and 4 git commands to generate.