From: Ian Lance Taylor Date: Mon, 10 May 1993 22:30:34 +0000 (+0000) Subject: * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1edc5cd26d6b9f2d67e04a1d8da89d5317277a72;p=binutils-gdb.git * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of memory. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ad3302bf2a2..6efcba4031d 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 65443b9eae6..b174b097666 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;