diff options
author | dfr <dfr@FreeBSD.org> | 1998-07-29 18:41:30 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-07-29 18:41:30 +0000 |
commit | 1d772123c10bb8b25fbd288ee977968f04596548 (patch) | |
tree | 51c1dba8651fc6c1d7b75803d790bfdb2c0dff51 /sys | |
parent | 4e0f5156dbdf15c90dab2eb19e28e881772ae5c5 (diff) | |
download | FreeBSD-src-1d772123c10bb8b25fbd288ee977968f04596548.zip FreeBSD-src-1d772123c10bb8b25fbd288ee977968f04596548.tar.gz |
Only access an int for READU/WRITEU since that is what ptrace is declared to
return.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sys_process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index c67509f..330a2d6 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sys_process.c,v 1.38 1998/06/07 17:11:39 dfr Exp $ + * $Id: sys_process.c,v 1.39 1998/07/15 04:43:49 bde Exp $ */ #include <sys/param.h> @@ -420,7 +420,7 @@ ptrace(curp, uap) if (p->p_flag & P_INMEM) { p->p_addr->u_kproc.kp_proc = *p; fill_eproc (p, &p->p_addr->u_kproc.kp_eproc); - curp->p_retval[0] = *(long *) + curp->p_retval[0] = *(int *) ((uintptr_t)p->p_addr + (uintptr_t)uap->addr); } else { curp->p_retval[0] = 0; |