util/nvmutil: run-time CHAR_BIT test

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-16 15:36:10 +00:00
parent f3956a2482
commit 440d6ce5ba

View File

@@ -719,6 +719,9 @@ main(int argc, char *argv[])
if (argc < 3)
usage();
if (CHAR_BIT != 8)
err(EINVAL, "Unsupported char size");
fname = argv[1];
#ifdef NVMUTIL_UNVEIL