From 1edc5cd26d6b9f2d67e04a1d8da89d5317277a72 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 10 May 1993 22:30:34 +0000 Subject: [PATCH] * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of memory. --- gdb/ChangeLog | 5 +++++ gdb/hppa-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ad3302bf2a..6efcba4031 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 65443b9eae..b174b09766 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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;