* hppa-tdep.c (hppa_push_arguments): Allocate correct amount of

memory.
This commit is contained in:
Ian Lance Taylor 1993-05-10 22:30:34 +00:00
parent a0b9aa8dc4
commit 1edc5cd26d
2 changed files with 6 additions and 1 deletions

View 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.

View 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;