"cT Set time type%110 Lock\n"
"b^L Redraw%18? Help, conf\n"
};
+ char help_buf[1<<11]; // if editing helpstr, ensure this has enough space to decode it
int fd = create_tmp_file();
if (fd == -1)
get_output(prog, NULL, NULL, fd, FALSE);
bool hex = true;
- char *w = g_buf;
+ char *w = help_buf;
const char *end = helpstr + (sizeof helpstr - 1);
for (const char *s = helpstr; s < end; ++s) {
if (hex) {
}
hex = *s == '\n';
}
- if (write(fd, g_buf, w - g_buf)) {} // silence warning
+ if (write(fd, help_buf, w - help_buf)) {} // silence warning
dprintf(fd, "\nLOCATIONS\n");
for (uchar_t i = 0; i < CTX_MAX; ++i)