From 888d291c774ec55cac10c52d03a07da49f038e90 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 14 Jun 1998 18:57:10 +0000 Subject: fix compat shmctl/IPC_STAT --- sys/kern/sysv_shm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index f8641b04648..ff26129d05e 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysv_shm.c,v 1.8 1998/06/11 18:32:17 deraadt Exp $ */ +/* $OpenBSD: sysv_shm.c,v 1.9 1998/06/14 18:57:09 matthieu Exp $ */ /* $NetBSD: sysv_shm.c,v 1.37 1996/03/16 23:17:13 christos Exp $ */ /* @@ -302,7 +302,7 @@ sys_oshmctl(p, v, retval) if ((error = ipcperm(cred, &shmseg->shm_perm, IPC_R)) != 0) return error; shmid_n2o(shmseg, &oinbuf); - error = copyout((caddr_t)shmseg, SCARG(uap, buf), + error = copyout((caddr_t)&oinbuf, SCARG(uap, buf), sizeof(oinbuf)); if (error) return error; -- cgit v1.2.3