summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/libreboot-utils/lottery.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/libreboot-utils/lottery.c b/util/libreboot-utils/lottery.c
index 9e396d1d..9b37d117 100644
--- a/util/libreboot-utils/lottery.c
+++ b/util/libreboot-utils/lottery.c
@@ -1,12 +1,12 @@
-/* SPDX-License-Identifier: MIT ( >:3 )
- * Copyright (c) 2026 Leah Rowe <leah@libreboot.org> /| |\
- / \*/
-#include <stdio.h>
+/* SPDX-License-Identifier: MIT ( >:3 )
+ * Copyright (c) 2026 Leah Rowe <leah@libreboot.org> /| |\*/
+#include <stdio.h> /* / \ */
+#include <stdint.h>
#include <string.h> /* (^.>) - are u lucky? */
#include "include/common.h" /* \| /= */
static int rigged(char **s, int spew) { /* l \ */
- size_t size[2] = { rsize(1 << 17), rsize(1 << 17) };
- spew &= size[1] = !(size[0] && size[0] == size[1] && size[0] <=1<<18 &&
+ size_t size[2] = { rsize(SIZE_MAX >> 1), rsize(SIZE_MAX >> 1) };
+ spew &= size[1] = !(size[0] && size[0]==size[1] && size[0]<=SIZE_MAX &&
s != NULL) || memcmp(*s = mkrbuf(size[0] << 1), *s + size[0],
size[0]);
if (spew && !size[1]) printf("%s\n\n", *s);