mirror of https://github.com/mirror/busybox.git
prevent buffer underflows with empty lines
parent
c255f8b492
commit
40ae9b5617
|
@ -390,7 +390,7 @@ static int conf_choice(struct menu *menu)
|
||||||
}
|
}
|
||||||
if (!child)
|
if (!child)
|
||||||
continue;
|
continue;
|
||||||
if (line[strlen(line) - 1] == '?') {
|
if (strlen(line) > 0 && line[strlen(line) - 1] == '?') {
|
||||||
printf("\n%s\n", child->sym->help ?
|
printf("\n%s\n", child->sym->help ?
|
||||||
child->sym->help : nohelp_text);
|
child->sym->help : nohelp_text);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue