diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh index a24028f081..2ffd6d6ae1 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 rlp( - process->getSyscallArg(tc, index)); + TypedBufferArg rlp(o); switch (resource) { case OS::TGT_RLIMIT_STACK: // max stack size in bytes: make up a number (8MB for now)