From 2117ad192d42ed7cb0f5325c9862a641f35efec1 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 6 Aug 2009 10:53:29 -0700 Subject: [PATCH] minor fix R=rsc DELTA=2 (1 added, 1 deleted, 0 changed) OCL=32828 CL=32830 --- src/pkg/bufio/bufio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/bufio/bufio.go b/src/pkg/bufio/bufio.go index 5ef1b69e9d..c64e01b446 100644 --- a/src/pkg/bufio/bufio.go +++ b/src/pkg/bufio/bufio.go @@ -107,11 +107,11 @@ func (b *Reader) fill() os.Error { // Read new data. n, e := b.rd.Read(b.buf[b.w:len(b.buf)]); + b.w += n; if e != nil { b.err = e; return e } - b.w += n; return nil }