trace: Use properly sized type for PTRACE_GETEVENTMSG
authorMichal Sojka <michal.sojka@cvut.cz>
Mon, 30 Jul 2018 07:31:09 +0000 (09:31 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 30 Jul 2018 13:24:15 +0000 (15:24 +0200)
commit5f57223913a9657bc1ff14284b01ffcb8dbe0eba
tree63a045ba5901e19bfa3c100a0afbf5d134a287dc
parent747efb6255cb06e1cd0a8553fd12b9c1f6537d95
trace: Use properly sized type for PTRACE_GETEVENTMSG

Without this, on 64-bit systems, ptrace call corrupts memory because
it stores 64bit value to 32bit pid_t variable.

Signed-off-by: Michal Sojka <michal.sojka@cvut.cz>
trace/trace.c