diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-03-16 01:24:31 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-03-16 01:24:31 +0000 |
commit | ea9cae9c0a60932bda820d0127db69c896a90019 (patch) | |
tree | c084ddda0680e1b458d45a4fff4f5753f65ea769 /sys | |
parent | 88f2b8d4886d4340eb971b958257776945c7065d (diff) |
More copyin bugs.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/svr4/svr4_ipc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/svr4/svr4_ipc.c b/sys/compat/svr4/svr4_ipc.c index 97fb7ac14dc..c7e9b38e666 100644 --- a/sys/compat/svr4/svr4_ipc.c +++ b/sys/compat/svr4/svr4_ipc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svr4_ipc.c,v 1.5 2001/03/16 01:21:24 csapuntz Exp $ */ +/* $OpenBSD: svr4_ipc.c,v 1.6 2001/03/16 01:24:30 csapuntz Exp $ */ /* $NetBSD: svr4_ipc.c,v 1.3 1997/03/30 17:21:02 christos Exp $ */ /* @@ -485,7 +485,7 @@ svr4_msgctl(p, v, retval) SCARG(&ap, cmd) = IPC_STAT; if ((error = sys_msgctl(p, &ap, retval)) != 0) return error; - error = copyin(&bs, SCARG(&ap, buf), sizeof bs); + error = copyin(SCARG(&ap, buf), &bs, sizeof bs); if (error) return error; bsd_to_svr4_msqid_ds(&bs, &ss); @@ -700,7 +700,7 @@ svr4_shmctl(p, v, retval) return error; if (SCARG(uap, buf) == NULL) return 0; - error = copyin(&bs, SCARG(&ap, buf), sizeof bs); + error = copyin(SCARG(&ap, buf), &bs, sizeof bs); if (error) return error; bsd_to_svr4_shmid_ds(&bs, &ss); |