From f1c20f78e635e91714f5f04cf4c5f2b1e63276a2 Mon Sep 17 00:00:00 2001 From: dfr Date: Wed, 29 Jul 1998 18:41:30 +0000 Subject: [PATCH] Only access an int for READU/WRITEU since that is what ptrace is declared to return. --- sys/kern/sys_process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index c67509f22c29..330a2d68c9ee 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 @@ -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;