From ff07ba70683479552e964ce4de56548b15f5d2f8 Mon Sep 17 00:00:00 2001 From: Yaroslav Vorobiov Date: Thu, 26 Mar 2020 15:11:50 +0200 Subject: [PATCH] sys/unix: ensure passing checkptr check --- 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 9ad8a0d4..a972e682 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] + bytes := (*[10000]byte)(unsafe.Pointer(&pp.Path[0]))[0:n:n] sa.Name = string(bytes) return sa, nil