From f3b38a06e56f5fe6e067af299ad0e7d216156de2 Mon Sep 17 00:00:00 2001 From: Yves Junqueira Date: Sun, 25 Jul 2010 20:32:08 +0100 Subject: [PATCH] Small fix on bencode parse.go --- parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.go b/parse.go index f9bbfaf..3a409a6 100644 --- a/parse.go +++ b/parse.go @@ -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