summaryrefslogtreecommitdiff
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorMike Frysinger2006-12-30 19:30:20 +0000
committerMike Frysinger2006-12-30 19:30:20 +0000
commit40ae9b56174513c9e843f7b479bc64e14b2f1b64 (patch)
treea63b76a1aada9edb94ae7b47abaa6f27f8f85c2e /scripts/kconfig
parentc255f8b492ea8309b7f554aa2814545efa67fa58 (diff)
downloadbusybox-40ae9b56174513c9e843f7b479bc64e14b2f1b64.zip
busybox-40ae9b56174513c9e843f7b479bc64e14b2f1b64.tar.gz
prevent buffer underflows with empty lines
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index a95ba93..ca722b0 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -390,7 +390,7 @@ static int conf_choice(struct menu *menu)
}
if (!child)
continue;
- if (line[strlen(line) - 1] == '?') {
+ if (strlen(line) > 0 && line[strlen(line) - 1] == '?') {
printf("\n%s\n", child->sym->help ?
child->sym->help : nohelp_text);
continue;