1
0
Fork 0
forked from External/ergo

upgrade to x/term instead of crypto/ssh/terminal

Simplify some of the password hashing logic. This requires a bump of irctest.
This commit is contained in:
Shivaram Lingamneni 2023-04-19 02:58:50 -04:00
parent eeec481b8d
commit 0d8dcbecf6
152 changed files with 1279 additions and 981 deletions

View file

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