mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 13:16:47 +02:00
util/nvmutil: use xstrxlen for mac length
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -606,7 +606,7 @@ parse_mac_string(void)
|
|||||||
{
|
{
|
||||||
size_t mac_byte;
|
size_t mac_byte;
|
||||||
|
|
||||||
if (strlen(mac_str) != 17)
|
if (xstrxlen(mac_str, 18) != 17)
|
||||||
err(EINVAL, "MAC address is the wrong length");
|
err(EINVAL, "MAC address is the wrong length");
|
||||||
|
|
||||||
memset(mac_buf, 0, sizeof(mac_buf));
|
memset(mac_buf, 0, sizeof(mac_buf));
|
||||||
|
|||||||
Reference in New Issue
Block a user