From: Roland McGrath Date: Fri, 10 Jan 2003 07:50:21 +0000 (+0000) Subject: 2003-01-09 Roland McGrath X-Git-Tag: v4.5.18~894 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d38809b8bd82bbebad7da330398c07bf1a7d215e;p=strace 2003-01-09 Roland McGrath * syscall.c (force_result) [S390 || S390X]: Fix typo. --- diff --git a/syscall.c b/syscall.c index 578db441..b2ecd7aa 100644 --- a/syscall.c +++ b/syscall.c @@ -1479,7 +1479,7 @@ force_result(tcp, error, rval) #ifdef LINUX #if defined(S390) || defined(S390X) gpr2 = error ? -error : rval; - if (upeek(pid, PT_GPR2, &gpr2) < 0) + if (upeek(tcp->pid, PT_GPR2, &gpr2) < 0) return -1; if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)PT_GPR2, gpr2) < 0) return -1;