diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-05-10 22:30:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-05-10 22:30:34 +0000 |
commit | 1edc5cd26d6b9f2d67e04a1d8da89d5317277a72 (patch) | |
tree | 1bccfe0b190e077b8a9a734a19a7c8f299453160 /gdb/hppa-tdep.c | |
parent | a0b9aa8dc418b8ad56a6b8af6997b700b9a891bf (diff) | |
download | gdb-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.c | 2 |
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; |