diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-05 08:49:01 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-05 08:49:01 +0000 |
commit | f38ec256e3a9e78a629944bec4148dd26e5a6b6d (patch) | |
tree | 88cbdd075170a898bd8232507079c8ea5836a31f /libgo | |
parent | 900ae661a69bd6ebff6a54fb2ab20a9ba290b424 (diff) | |
download | gcc-f38ec256e3a9e78a629944bec4148dd26e5a6b6d.tar.gz |
syscall: Fix splice syscall.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/syscall/libcall_linux.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go index a5421d436d6..482a23f96de 100644 --- a/libgo/go/syscall/libcall_linux.go +++ b/libgo/go/syscall/libcall_linux.go @@ -313,11 +313,13 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i var lroff _loff_t var plroff *_loff_t if roff != nil { + lroff = _loff_t(*roff) plroff = &lroff } var lwoff _loff_t var plwoff *_loff_t if woff != nil { + lwoff = _loff_t(*woff) plwoff = &lwoff } n, err = splice(rfd, plroff, wfd, plwoff, len, flags) |