syscall: Fix splice syscall.

From-SVN: r194184
This commit is contained in:
Ian Lance Taylor 2012-12-05 08:48:44 +00:00
parent c4b2de60a1
commit 0073ec0fa5
1 changed files with 2 additions and 0 deletions

View File

@ -310,11 +310,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)