From 2f31ca5dcfd621a5820fead022b7f75bce9b225c Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Thu, 28 Jul 2011 18:01:46 +0100 Subject: [PATCH] Oh, god damnit. Should at least *try* to build things to make sure they work. --- client/line.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/line.go b/client/line.go index 48bbdab..cf77b3d 100644 --- a/client/line.go +++ b/client/line.go @@ -19,9 +19,9 @@ type Line struct { // NOTE: this doesn't copy l.Time (this should be read-only anyway) func (l *Line) Copy() *Line { - nl := *line - nl.Args = make([]string, len(line.Args)) - copy(nl.Args, line.Args) + nl := *l + nl.Args = make([]string, len(l.Args)) + copy(nl.Args, l.Args) return &nl }