sys/unix: ensure passing checkptr check

This commit is contained in:
Yaroslav Vorobiov
2020-03-26 15:11:50 +02:00
parent 85ca7c5b95
commit ff07ba7068

View File

@@ -235,7 +235,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
}
}
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n:n]
sa.Name = string(bytes)
return sa, nil