We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc8bfea commit 40d106cCopy full SHA for 40d106c
1 file changed
pkg/ebpf/maps/display.go
@@ -62,7 +62,7 @@ func RestoreBytes(format DisplayFormat, value string, expectedSize uint32) ([]by
62
return nil, fmt.Errorf("hex data is too long (%d bytes vs %d expected)", len(value)/2, expectedSize)
63
}
64
result := make([]byte, expectedSize)
65
- _, err := hex.Decode(result, []byte(value)[:expectedSize*2])
+ _, err := hex.Decode(result, []byte(value))
66
if err != nil {
67
return nil, err
68
0 commit comments