1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-24 13:48:56 +08:00

[process][freebsd]: use binary.Read instead of common.Read

This commit is contained in:
shirou 2024-05-23 22:21:59 +09:00
parent 5fa412cc5f
commit edb58e3dd1

View File

@ -71,6 +71,6 @@ func (p *Process) EnvironWithContext(ctx context.Context) ([]string, error) {
func parseKinfoProc(buf []byte) (KinfoProc, error) {
var k KinfoProc
br := bytes.NewReader(buf)
err := common.Read(br, binary.LittleEndian, &k)
err := binary.Read(br, binary.LittleEndian, &k)
return k, err
}