aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-05-10 22:30:34 +0000
committerIan Lance Taylor <ian@airs.com>1993-05-10 22:30:34 +0000
commit1edc5cd26d6b9f2d67e04a1d8da89d5317277a72 (patch)
tree1bccfe0b190e077b8a9a734a19a7c8f299453160 /gdb/hppa-tdep.c
parenta0b9aa8dc418b8ad56a6b8af6997b700b9a891bf (diff)
downloadgdb-1edc5cd26d6b9f2d67e04a1d8da89d5317277a72.zip
gdb-1edc5cd26d6b9f2d67e04a1d8da89d5317277a72.tar.gz
gdb-1edc5cd26d6b9f2d67e04a1d8da89d5317277a72.tar.bz2
* hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
memory.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 65443b9..b174b09 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;