Small fix on bencode parse.go

This commit is contained in:
Yves Junqueira 2010-07-25 20:32:08 +01:00
parent 56e375d053
commit f3b38a06e5

View file

@ -96,7 +96,7 @@ func decodeString(r Reader) (data string, err os.Error) {
err = os.NewError("Bad string length")
return
}
var buf = make([]byte, len)
var buf = make([]byte, length)
_, err = io.ReadFull(r, buf)
if err != nil {
return