mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-03-25 13:29:03 +02:00
util/nvmutil: use strlen for tmpdir length
sizeof includes the null Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -2770,7 +2770,7 @@ new_tmpfile(int *fd, int local, const char *path)
|
||||
/*
|
||||
* appended to filename for tmp:
|
||||
*/
|
||||
tmpdir_len = sizeof(default_tmpname);
|
||||
tmpdir_len = xstrxlen(default_tmpname, maxlen);
|
||||
} else {
|
||||
base = x_c_tmpdir();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user