commit | 9baa7a51ba117205529b39c8ef738b9f373e5f37 | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Tue Jun 15 17:40:47 2010 -0700 |
committer | Rob Pike <r@golang.org> | Tue Jun 15 17:40:47 2010 -0700 |
tree | 3afe2f005203cd4b3062d4c0f578be823ba322b3 | |
parent | 6c08859b0e95839d0dfbd9047d6d789b180d0bad [diff] [blame] |
bytes.Buffer.ReadFrom: fix bug. Fixes #852. R=rsc CC=golang-dev https://golang.org/cl/1680042
diff --git a/src/pkg/bytes/buffer.go b/src/pkg/bytes/buffer.go index 32571d8..01e6aef 100644 --- a/src/pkg/bytes/buffer.go +++ b/src/pkg/bytes/buffer.go
@@ -134,7 +134,7 @@ b.off = 0 } m, e := r.Read(b.buf[len(b.buf):cap(b.buf)]) - b.buf = b.buf[b.off : len(b.buf)+m] + b.buf = b.buf[0 : len(b.buf)+m] n += int64(m) if e == os.EOF { break