1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

update golang libraries (#15258)

This commit is contained in:
techknowlogick
2021-04-02 23:02:27 -04:00
committed by GitHub
parent 42e62facf7
commit 70d84f9b73
109 changed files with 4196 additions and 3174 deletions

View File

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