summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib/num.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-25 18:01:38 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-25 18:01:38 +0000
commit7d6bee562657183e2390ceb91201455a895c683e (patch)
treeed01443618900a7fc5ecb44bc84087b2b230c6c7 /util/libreboot-utils/lib/num.c
parent32a18b39447d8f055465ee783c7543c8002cc518 (diff)
libreboot-utils: replace rlong() with rset()
now you can send an arbitrary number of bytes with random numbers Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/num.c')
-rw-r--r--util/libreboot-utils/lib/num.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/libreboot-utils/lib/num.c b/util/libreboot-utils/lib/num.c
index 41a08f0b..92710c35 100644
--- a/util/libreboot-utils/lib/num.c
+++ b/util/libreboot-utils/lib/num.c
@@ -84,7 +84,7 @@ hextonum(char ch_s)
if (ch == '?' || ch == 'x') {
- rval = rlong();
+ rset(&rval, sizeof(rval));
if (errno > 0)
goto err_hextonum;