diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-12-05 08:49:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-12-05 08:49:01 +0000 |
commit | 03a6c305d3003e6aafbf014bf2c6651839fa7400 (patch) | |
tree | 88cbdd075170a898bd8232507079c8ea5836a31f /libgo/go/syscall | |
parent | 08d8c74533fd7dc5f28549c7b8cdd4fddbb9f458 (diff) | |
download | gcc-03a6c305d3003e6aafbf014bf2c6651839fa7400.zip gcc-03a6c305d3003e6aafbf014bf2c6651839fa7400.tar.gz gcc-03a6c305d3003e6aafbf014bf2c6651839fa7400.tar.bz2 |
syscall: Fix splice syscall.
From-SVN: r194185
Diffstat (limited to 'libgo/go/syscall')
-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 a5421d4..482a23f 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) |