summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gwic.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/gwic.go b/gwic.go
index fdefdad..a873467 100644
--- a/gwic.go
+++ b/gwic.go
@@ -79,11 +79,12 @@ func printqueue(q *queue, words chan string, kw string, left int, out chan strin
continue
}
- q.insert(fmt.Sprintf("%q", w))
+ qstr := fmt.Sprintf("%q", w)
+ q.insert(qstr)
wc := &work{c: make(chan string, 10), left: 5, done: make(chan struct{})}
- hungryhippos = feedworkers(hungryhippos, w)
+ hungryhippos = feedworkers(hungryhippos, qstr)
sl := make([]string, MAX)
copy(sl, q.q[6:])