Oh, god damnit. Should at least *try* to build things to make sure they work.

This commit is contained in:
Alex Bramley 2011-07-28 18:01:46 +01:00
parent d6ac053b62
commit f0a9246c7a
1 changed files with 3 additions and 3 deletions

View File

@ -19,9 +19,9 @@ type Line struct {
// NOTE: this doesn't copy l.Time (this should be read-only anyway) // NOTE: this doesn't copy l.Time (this should be read-only anyway)
func (l *Line) Copy() *Line { func (l *Line) Copy() *Line {
nl := *line nl := *l
nl.Args = make([]string, len(line.Args)) nl.Args = make([]string, len(l.Args))
copy(nl.Args, line.Args) copy(nl.Args, l.Args)
return &nl return &nl
} }