From d3ae10d534809ec9b1fa7c9e04b9bf61c2d7e0d0 Mon Sep 17 00:00:00 2001 From: Yaroslav Vorobiov Date: Thu, 26 Mar 2020 14:46:14 +0200 Subject: [PATCH] revert unix changes --- unix/syscall_aix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/syscall_aix.go b/unix/syscall_aix.go index a972e682..9ad8a0d4 100644 --- a/unix/syscall_aix.go +++ b/unix/syscall_aix.go @@ -235,7 +235,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) { } } - bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n:n] + bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n] sa.Name = string(bytes) return sa, nil