summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib/string.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-31 07:42:40 +0100
committerLeah Rowe <leah@libreboot.org>2026-03-31 07:42:40 +0100
commit2f7623ff06ca9b1b77c65ab7ba3acfe7ccf371d8 (patch)
tree685c63a6302898acb6b5b1407ec28e1662985bcb /util/libreboot-utils/lib/string.c
parentfb5f1b4ed150087ee22c4ce9864fa9cd04178a9f (diff)
libreboot-utils: unified max path lengths
just use PATH_MAX like a normal person with additional safety Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/string.c')
-rw-r--r--util/libreboot-utils/lib/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/libreboot-utils/lib/string.c b/util/libreboot-utils/lib/string.c
index c083bd6d..ad11d29d 100644
--- a/util/libreboot-utils/lib/string.c
+++ b/util/libreboot-utils/lib/string.c
@@ -601,7 +601,7 @@ lbsetprogname(char *argv0)
if (!set) {
if (argv0 == NULL)
return "libreboot-utils";
- (void) sdup(argv0, 4096, &progname);
+ (void) sdup(argv0, PATH_MAX, &progname);
set = 1;
}