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-26 06:59:42 +0000
commita70ede850d4aa5942e59b5ba3ba9dbd3cd1a93e7 (patch)
tree07493965487f89c675f3e87dbafabb6fb8711907 /util/libreboot-utils/lib/num.c
parent00b56c0278966edfd2acc29e55efac734982013e (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;