mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +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:
|
* appended to filename for tmp:
|
||||||
*/
|
*/
|
||||||
tmpdir_len = sizeof(default_tmpname);
|
tmpdir_len = xstrxlen(default_tmpname, maxlen);
|
||||||
} else {
|
} else {
|
||||||
base = x_c_tmpdir();
|
base = x_c_tmpdir();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user