diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 1998-06-14 18:57:10 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 1998-06-14 18:57:10 +0000 |
commit | 888d291c774ec55cac10c52d03a07da49f038e90 (patch) | |
tree | a37b074c6ad8eb65f1e24ba21b8ed649563df6a4 /sys/kern | |
parent | aab90465bbb2c44035664bac55fd9cc9273c6e80 (diff) |
fix compat shmctl/IPC_STAT
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sysv_shm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |