diff options
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; |