syscall: Fix splice syscall.

From-SVN: r194185
This commit is contained in:
Ian Lance Taylor 2012-12-05 08:49:01 +00:00
parent 08d8c74533
commit 03a6c305d3

View 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)