aboutsummaryrefslogtreecommitdiff
path: root/src/debug/plan9obj
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/plan9obj')
-rw-r--r--src/debug/plan9obj/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/plan9obj/file.go b/src/debug/plan9obj/file.go
index c78e35d000..314608da61 100644
--- a/src/debug/plan9obj/file.go
+++ b/src/debug/plan9obj/file.go
@@ -274,7 +274,7 @@ func newTable(symtab []byte, ptrsz int) ([]Sym, error) {
ts.Value = s.value
switch s.typ {
default:
- ts.Name = string(s.name[:])
+ ts.Name = string(s.name)
case 'z', 'Z':
for i := 0; i < len(s.name); i += 2 {
eltIdx := binary.BigEndian.Uint16(s.name[i : i+2])