diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-09-30 06:45:24 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-09-30 06:45:24 -0400 |
commit | fe3c91d581ed8044fdd0cf07542965b5daed255b (patch) | |
tree | 2ecc9d29cb45c708885fd06217d308df2bf81221 /vendor/golang.org/x/sys/plan9/syscall.go | |
parent | d88acd83a1bdd260fc69e0ff115ff99d55bb7760 (diff) | |
download | podman-fe3c91d581ed8044fdd0cf07542965b5daed255b.tar.gz podman-fe3c91d581ed8044fdd0cf07542965b5daed255b.tar.bz2 podman-fe3c91d581ed8044fdd0cf07542965b5daed255b.zip |
Update vendor containers/(common,image)
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/golang.org/x/sys/plan9/syscall.go')
-rw-r--r-- | vendor/golang.org/x/sys/plan9/syscall.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/golang.org/x/sys/plan9/syscall.go b/vendor/golang.org/x/sys/plan9/syscall.go index ea971285f..67e5b0115 100644 --- a/vendor/golang.org/x/sys/plan9/syscall.go +++ b/vendor/golang.org/x/sys/plan9/syscall.go @@ -80,8 +80,7 @@ func BytePtrToString(p *byte) string { ptr = unsafe.Pointer(uintptr(ptr) + 1) } - s := unsafe.Slice((*byte)(unsafe.Pointer(p)), n) - return string(s) + return string(unsafe.Slice(p, n)) } // Single-word zero for use when we need a valid pointer to 0 bytes. |