syscall: Fix splice syscall.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Dec 2012 08:49:01 +0000 (08:49 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Dec 2012 08:49:01 +0000 (08:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194185 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/go/syscall/libcall_linux.go

index a5421d4..482a23f 100644 (file)
@@ -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)