From d7684de92df0f1653203052e907409ff1294200e Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Mon, 29 Dec 2014 17:04:08 -0600 Subject: [PATCH] Use ptrsize instead of assuming --- proctl/variables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proctl/variables.go b/proctl/variables.go index 37278ce5..d5a1c9c5 100644 --- a/proctl/variables.go +++ b/proctl/variables.go @@ -539,7 +539,7 @@ func (thread *ThreadContext) readIntSlice(addr uintptr) (string, error) { l := binary.LittleEndian.Uint64(val[8:16]) c := binary.LittleEndian.Uint64(val[16:24]) - val, err = thread.readMemory(uintptr(a), uintptr(8*l)) + val, err = thread.readMemory(uintptr(a), uintptr(uint64(ptrsize)*l)) if err != nil { return "", err }