diff options
-rw-r--r-- | src/sim/syscall_emul.hh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index a24028f08..2ffd6d6ae 100644 --- a/src/sim/syscall_emul.hh +++ b/src/sim/syscall_emul.hh @@ -1705,8 +1705,7 @@ prlimitFunc(SyscallDesc *desc, int callnum, Process *process, Addr o = process->getSyscallArg(tc, index); if (o != 0) { - TypedBufferArg<typename OS::rlimit> rlp( - process->getSyscallArg(tc, index)); + TypedBufferArg<typename OS::rlimit> rlp(o); switch (resource) { case OS::TGT_RLIMIT_STACK: // max stack size in bytes: make up a number (8MB for now) |