From 7a2daa7d3a1871385d5d09b80578bda7bf857037 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 30 Aug 2010 13:47:40 -0700 Subject: proc, eval: Don't assign address of an array to a slice. R=rsc CC=golang-dev https://golang.org/cl/2084041 --- src/pkg/debug/proc/regs_linux_amd64.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/debug') diff --git a/src/pkg/debug/proc/regs_linux_amd64.go b/src/pkg/debug/proc/regs_linux_amd64.go index a9f3569d3a..381be29b17 100644 --- a/src/pkg/debug/proc/regs_linux_amd64.go +++ b/src/pkg/debug/proc/regs_linux_amd64.go @@ -71,7 +71,7 @@ func (r *amd64Regs) SetSP(val Word) os.Error { return r.setter(&r.PtraceRegs) } -func (r *amd64Regs) Names() []string { return &names } +func (r *amd64Regs) Names() []string { return names[0:] } func (r *amd64Regs) Get(i int) Word { switch i { -- cgit v1.3-5-g9baa