From: Roland McGrath Date: Tue, 2 Mar 2004 08:50:42 +0000 (+0000) Subject: 2004-03-02 Roland McGrath X-Git-Tag: v4.5.18~609 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02cee8d5cbcb0aaaf64d4f4d0916e3d4dbd8ee01;p=strace 2004-03-02 Roland McGrath * util.c (setbpt): Fix one missed spot to use new arg0_index macro. From Michael Holzheu . --- diff --git a/util.c b/util.c index 2770ac45..d4cc290c 100644 --- a/util.c +++ b/util.c @@ -1384,7 +1384,7 @@ struct tcb *tcp; #ifdef SYS_clone2 case SYS_clone2: #endif - if ((tcp->u_arg[0] & CLONE_PTRACE) == 0 + if ((tcp->u_arg[arg0_index] & CLONE_PTRACE) == 0 && (arg_setup (tcp, &state) < 0 || set_arg0 (tcp, &state, tcp->u_arg[arg0_index] | CLONE_PTRACE) < 0