diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-09 03:11:31 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-09 03:11:31 +0000 |
commit | 47ae008628fdae80337d733431cf5369a4f95eeb (patch) | |
tree | 0cb62b917c54ca307e7cc6d4bfcbc415ab770b30 /sys/compat | |
parent | 19962d6344218659b839fe0c068b9a0affd339c3 (diff) |
Correct the size arg to copyout.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index c4ef4208b6c..09d04135eed 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_socket.c,v 1.24 2002/08/09 01:03:25 fgsch Exp $ */ +/* $OpenBSD: linux_socket.c,v 1.25 2002/08/09 03:11:30 aaron Exp $ */ /* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */ /* @@ -525,7 +525,7 @@ linux_sendto_hdrincl(p, bsa, retval) /* Convert fields from Linux to BSD raw IP socket format */ rpacket.ip_len = SCARG(bsa, len); - error = copyout(&rpacket, packet, sizeof(packet)); + error = copyout(&rpacket, packet, linux_ip_copysize); if (error) return (error); |