--- nono/util/nvramedit/nvramedit.cpp 2026/04/29 17:05:16 1.1.1.2 +++ nono/util/nvramedit/nvramedit.cpp 2026/04/29 17:05:49 1.1.1.3 @@ -102,8 +102,11 @@ main(int ac, char *av[]) err(1, "%s: fstat", filename); } - maplen = 2040; - if (st.st_size < maplen) { + maplen = 2048; + if (st.st_size == 2040) { + warnx("%s: Old filesize (2040 bytes). Current size is %zu bytes.\n", + filename, maplen); + } else if (st.st_size < maplen) { errx(1, "%s: File too short. Correct size is %zu bytes.\n", filename, maplen); } else if (st.st_size > maplen) {