Skip to content

Commit

Permalink
Fix small read buffer related bug in recvLoop
Browse files Browse the repository at this point in the history
  • Loading branch information
fw42 committed May 12, 2013
1 parent c0a7dff commit 6bbd3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpfeeds.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (hp *Hpfeeds) recvLoop() {
if len(buf) < int(hdr.Length) {
break
}
data := buf[5:]
data := buf[5:int(hdr.Length)]
hp.parse(hdr.Opcode, data)
buf = buf[int(hdr.Length):]
}
Expand Down

0 comments on commit 6bbd3dd

Please sign in to comment.