Skip to content

Commit

Permalink
Fix for stacks ending with 0 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantv committed Apr 4, 2016
1 parent 239dbc0 commit 5ec8a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion introspection.go
Expand Up @@ -318,7 +318,7 @@ func getStacks(all bool) []byte {
buf = make([]byte, n)
stackLen := runtime.Stack(buf, all)
if stackLen < n {
return buf
return buf[:stackLen]
}
}

Expand Down

0 comments on commit 5ec8a2d

Please sign in to comment.