From 117c020ebcdb6bfcbfed48fa1a6754471a355ecb Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 14 Nov 2023 14:44:37 -0600 Subject: [PATCH] Make changes to help text size show up in bloatcheck. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index c6f5a873..3d9f612e 100644 --- a/main.c +++ b/main.c @@ -72,7 +72,7 @@ static const int NEED_OPTIONS = #endif #include "generated/help.h" -static char *help_data = +static const char help_data[] = #include "generated/newtoys.h" ; @@ -88,7 +88,7 @@ void show_help(FILE *out, int flags) : " (see https://landley.net/toybox)"); for (;;) { - s = help_data; + s = (void *)help_data; while (i--) s += strlen(s) + 1; // If it's an alias, restart search for real name if (*s != 255) break; -- 2.39.2