summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/include/common.h
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-04-21 06:39:50 +0100
committerLeah Rowe <leah@libreboot.org>2026-04-21 06:39:50 +0100
commite097eb5483b00631ef49353a22a73c2c48939d95 (patch)
treeb0446d36f711dd1b439f67571b38b13e17663f01 /util/libreboot-utils/include/common.h
parent7faf014a84e89f442f1ce35f5d0305074e77b85d (diff)
lbutils: don't use stack memory for path strings
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include/common.h')
-rw-r--r--util/libreboot-utils/include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h
index a16bdce0..940c4364 100644
--- a/util/libreboot-utils/include/common.h
+++ b/util/libreboot-utils/include/common.h
@@ -366,6 +366,8 @@ int scmp(const char *a, const char *b,
size_t maxlen, int *rval);
int ccmp(const char *a, const char *b, size_t i,
int *rval);
+int dup_pair(char **dir, const char *d,
+ char **base, const char *b);
char *sdup(const char *s,
size_t n, char **dest);
char *scatn(ssize_t sc, const char **sv,