summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lottery.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-29 22:15:27 +0100
committerLeah Rowe <leah@libreboot.org>2026-03-29 23:55:38 +0100
commit7fb0b2f69293f0fb0e83e9b125fbd658503147f0 (patch)
treef7c119ee9dc7ffbb6ad62bc360ddc52212413167 /util/libreboot-utils/lottery.c
parent01aa95ec15ed5a6e519f1d3887e105a40e17b84c (diff)
libreboot-utils: safe memcmp
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lottery.c')
-rw-r--r--util/libreboot-utils/lottery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/libreboot-utils/lottery.c b/util/libreboot-utils/lottery.c
index fd39c68c..1f8ff2e0 100644
--- a/util/libreboot-utils/lottery.c
+++ b/util/libreboot-utils/lottery.c
@@ -28,7 +28,7 @@ main(int argc, char **argv)
xpledgex("stdio", NULL);
buf = rmalloc(size);
- if (!memcmp(buf, buf + (size >> 1), size >> 1))
+ if (!vcmp(buf, buf + (size >> 1), size >> 1))
same = 1;
if (argc < 2) /* no spew */