From f0a9246c7a0205919b02350b2df31023f2f8b4cb 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 820464b..e2509ed 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 }