mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-12 22:42:54 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user