1
0
mirror of https://github.com/golang/go synced 2024-11-12 07:30:25 -07: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 { if r == bridge.share.eq.wi {
return noEvents return noEvents
} }
copy(ev, &bridge.share.eq.event[r]) copy(ev, bridge.share.eq.event[r][0:])
bridge.share.eq.ri = (r + 1) % eqsize bridge.share.eq.ri = (r + 1) % eqsize
return nil return nil
} }

View File

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