diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-13 11:09:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-13 11:09:26 +0200 |
commit | 1b3e8639f3a9041dcbc26b22b9c244a679075734 (patch) | |
tree | 3cbe2c5fa5c6acd0918a9d323399dac9ed868278 /vendor/golang.org/x/sys/unix/syscall.go | |
parent | 0f39129551bb59a2274780d35feb57369155caba (diff) | |
parent | 9457549fff7aee6246bf2f51659050c74586aed5 (diff) | |
download | podman-1b3e8639f3a9041dcbc26b22b9c244a679075734.tar.gz podman-1b3e8639f3a9041dcbc26b22b9c244a679075734.tar.bz2 podman-1b3e8639f3a9041dcbc26b22b9c244a679075734.zip |
Merge pull request #15750 from containers/dependabot/go_modules/github.com/vbauerster/mpb/v7-7.5.3
build(deps): bump github.com/vbauerster/mpb/v7 from 7.5.2 to 7.5.3
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/syscall.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall.go b/vendor/golang.org/x/sys/unix/syscall.go index 649fa8740..9916e5e85 100644 --- a/vendor/golang.org/x/sys/unix/syscall.go +++ b/vendor/golang.org/x/sys/unix/syscall.go @@ -29,8 +29,6 @@ import ( "bytes" "strings" "unsafe" - - "golang.org/x/sys/internal/unsafeheader" ) // ByteSliceFromString returns a NUL-terminated slice of bytes @@ -82,12 +80,7 @@ func BytePtrToString(p *byte) string { ptr = unsafe.Pointer(uintptr(ptr) + 1) } - var s []byte - h := (*unsafeheader.Slice)(unsafe.Pointer(&s)) - h.Data = unsafe.Pointer(p) - h.Len = n - h.Cap = n - + s := unsafe.Slice((*byte)(unsafe.Pointer(p)), n) return string(s) } |