mirror of
https://github.com/golang/go
synced 2024-11-21 13:14:40 -07:00
parent
2d3e47ca10
commit
a674c024c7
@ -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
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user