summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2012-04-15 18:01:18 +0200
committerYorhel <git@yorhel.nl>2012-04-15 18:01:18 +0200
commitcabc8eaa43e315210fea275c9346f9fb2d419945 (patch)
tree27ba23109e5e3e2a60d7f60bdfd19235ce6f5ed4
parent11644bfbf662601f7f2a51e9cb23a90a644564b0 (diff)
Fixed typoHEADmaster
Aargh, I fixed this before committing the previous commit, but in the wrong repo! *sigh*
-rw-r--r--wr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/wr.go b/wr.go
index b76f7cf..9de5419 100644
--- a/wr.go
+++ b/wr.go
@@ -173,7 +173,7 @@ func (w *Writer) Write(b []byte) (int, error) {
func (w *Writer) flusher() {
w.lock.Lock()
defer w.lock.Unlock()
- for len(buf) > 0 {
+ for len(w.buf) > 0 {
buf := w.buf
size := len(buf)
// Don't give too many data to a single Write(), otherwise it