From 403fd260b5e1a0335e5fc2bfbff081e1c578dcb9 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 3 Mar 2026 15:41:21 +0000 Subject: util/nvmutil: reduce the size of rnum to 12 we only need 12 bytes at a maximum Signed-off-by: Leah Rowe --- util/nvmutil/nvmutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/nvmutil') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 214ded5e..bcf205c3 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -340,9 +340,9 @@ hextonum(char ch) static uint8_t rhex(void) { - static uint8_t n = 0, rnum[16]; + static uint8_t n = 0, rnum[12]; if (!n) - err_if(read(rfd, (uint8_t *) &rnum, (n = 15) + 1) == -1); + err_if(read(rfd, (uint8_t *) &rnum, (n = 11) + 1) == -1); return rnum[n--] & 0xf; } -- cgit v1.2.1