1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

update golang libraries (#15258) (#15259)

This commit is contained in:
techknowlogick
2021-04-03 04:42:18 -04:00
committed by GitHub
parent 8ec7beb9f4
commit 33c4e246fe
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