diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-08 14:16:32 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-08 14:16:32 +0000 |
| commit | 9be83fa034cf84b36f9829a5ee457baf22cbe1d0 (patch) | |
| tree | e41309ee507b3ee7c5026ff8e86ca480f266368d /util/nvmutil/nvmutil.c | |
| parent | 4a9aea629b8f81ea16433de400e4c23f58e849c3 (diff) | |
util/nvmutil: use xstrxlen for mac length
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index ed53ea25..5f2b3379 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -606,7 +606,7 @@ parse_mac_string(void) { size_t mac_byte; - if (strlen(mac_str) != 17) + if (xstrxlen(mac_str, 18) != 17) err(EINVAL, "MAC address is the wrong length"); memset(mac_buf, 0, sizeof(mac_buf)); |
