diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-03-16 01:21:25 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-03-16 01:21:25 +0000 |
commit | 88f2b8d4886d4340eb971b958257776945c7065d (patch) | |
tree | d4071a5ed5c8921070d75dd358fe0bc5eb9f31af /sys | |
parent | e1dbba2ef1467abec0c20c2c2ea910e7b486e1f3 (diff) |
Fix copyin argument order bug. Thanks to Dawson Engler and team.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/svr4/svr4_ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/svr4/svr4_ipc.c b/sys/compat/svr4/svr4_ipc.c index 8fe2d0683d4..97fb7ac14dc 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.4 1997/08/29 18:30:58 kstailey Exp $ */ +/* $OpenBSD: svr4_ipc.c,v 1.5 2001/03/16 01:21:24 csapuntz Exp $ */ /* $NetBSD: svr4_ipc.c,v 1.3 1997/03/30 17:21:02 christos Exp $ */ /* @@ -221,7 +221,7 @@ svr4_semctl(p, v, retval) SCARG(&ap, arg)->buf = stackgap_alloc(&sg, sizeof(bs)); if ((error = sys___semctl(p, &ap, retval)) != 0) return error; - error = copyin(&bs, SCARG(&ap, arg)->buf, sizeof bs); + error = copyin(SCARG(&ap, arg)->buf, &bs, sizeof bs); if (error) return error; bsd_to_svr4_semid_ds(&bs, &ss); |