diff --git a/internal/pkg/miniprocfs/processes.go b/internal/pkg/miniprocfs/processes.go index d6e78f39d3..03f24d9cb2 100644 --- a/internal/pkg/miniprocfs/processes.go +++ b/internal/pkg/miniprocfs/processes.go @@ -164,7 +164,7 @@ func (procs *Processes) readProc(pidString string) (*machine.ProcessInfo, error) var label string if err = procs.readFileIntoBuf(path + "attr/current"); err == nil { - label = string(bytes.Trim(procs.buf, "\x000\n")) + label = string(bytes.Trim(procs.buf, "\x00\n")) } return &machine.ProcessInfo{