aboutsummaryrefslogtreecommitdiffhomepage
path: root/ldd/ldd.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-14 17:51:29 +0900
committerOphestra <cat@gensokyo.uk>2025-03-14 17:55:55 +0900
commit4bb5d9780f3c46e942dc778d93c28391caee33c7 (patch)
treebe07ad4378fa9dda5f2615a9d5e07b71bd17c1e5 /ldd/ldd.go
parentf41fd946284aa30e7529bd92193632b20d77a2dd (diff)
ldd: run in native sandbox
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ldd/ldd.go')
-rw-r--r--ldd/ldd.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/ldd/ldd.go b/ldd/ldd.go
index 434fbab6..ca4156c4 100644
--- a/ldd/ldd.go
+++ b/ldd/ldd.go
@@ -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 {