Clean: use go 1.19 Appendf

This commit is contained in:
gVisor bot 2022-08-24 20:20:34 +08:00
parent 08f414e9c7
commit 5845420649

View file

@ -166,7 +166,7 @@ func resolveProcessNameByProcSearch(inode, uid int32) (string, error) {
}
buffer := make([]byte, syscall.PathMax)
socket := []byte(fmt.Sprintf("socket:[%d]", inode))
socket := fmt.Appendf(nil, "socket:[%d]", inode)
for _, f := range files {
if !f.IsDir() || !isPid(f.Name()) {