diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-14 17:51:29 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-14 17:55:55 +0900 |
| commit | 4bb5d9780f3c46e942dc778d93c28391caee33c7 (patch) | |
| tree | be07ad4378fa9dda5f2615a9d5e07b71bd17c1e5 /ldd/ldd.go | |
| parent | f41fd946284aa30e7529bd92193632b20d77a2dd (diff) | |
ldd: run in native sandbox
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ldd/ldd.go')
| -rw-r--r-- | ldd/ldd.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2,7 +2,6 @@ package ldd import ( - "fmt" "math" "path" "strconv" @@ -15,8 +14,8 @@ type Entry struct { Location uint64 `json:"location"` } -func Parse(stdout fmt.Stringer) ([]*Entry, error) { - payload := strings.Split(strings.TrimSpace(stdout.String()), "\n") +func Parse(p []byte) ([]*Entry, error) { + payload := strings.Split(strings.TrimSpace(string(p)), "\n") result := make([]*Entry, len(payload)) for i, ent := range payload { |
