Make changes to help text size show up in bloatcheck.

This commit is contained in:
Rob Landley 2023-11-14 14:44:37 -06:00
parent 8aad4f4267
commit 117c020ebc

4
main.c
View File

@ -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;