1
0
mirror of https://github.com/golang/go synced 2024-09-25 03:10:12 -06:00

nacl: fix build

TBR=r
CC=golang-dev
https://golang.org/cl/1706044
This commit is contained in:
Russ Cox 2010-06-18 22:45:42 -07:00
parent 2d3e47ca10
commit a674c024c7
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ func videoPollEvent(ev []byte) (err os.Error) {
if r == bridge.share.eq.wi {
return noEvents
}
copy(ev, &bridge.share.eq.event[r])
copy(ev, bridge.share.eq.event[r][0:])
bridge.share.eq.ri = (r + 1) % eqsize
return nil
}

View File

@ -120,7 +120,7 @@ func (r *msgReceiver) recv() (*msg, os.Error) {
// returned the total byte count as n.
m := new(msg)
m.rdata = make([]byte, n)
copy(m.rdata, &r.data)
copy(m.rdata, r.data[0:])
// Make a copy of the desc too.
// The system call *did* update r.hdr.ndesc.