aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-30 19:30:20 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-30 19:30:20 +0000
commitfa727cd22f6df7ac3c8b9fc67a3dbe58593788bd (patch)
treea63b76a1aada9edb94ae7b47abaa6f27f8f85c2e
parent7508472a43b422ba9d2d7225b60a8fee33251f61 (diff)
downloadbusybox-w32-fa727cd22f6df7ac3c8b9fc67a3dbe58593788bd.tar.gz
busybox-w32-fa727cd22f6df7ac3c8b9fc67a3dbe58593788bd.tar.bz2
busybox-w32-fa727cd22f6df7ac3c8b9fc67a3dbe58593788bd.zip
prevent buffer underflows with empty lines
git-svn-id: svn://busybox.net/trunk/busybox@17108 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 a95ba93e2..ca722b05d 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -390,7 +390,7 @@ static int conf_choice(struct menu *menu)
390 } 390 }
391 if (!child) 391 if (!child)
392 continue; 392 continue;
393 if (line[strlen(line) - 1] == '?') { 393 if (strlen(line) > 0 && line[strlen(line) - 1] == '?') {
394 printf("\n%s\n", child->sym->help ? 394 printf("\n%s\n", child->sym->help ?
395 child->sym->help : nohelp_text); 395 child->sym->help : nohelp_text);
396 continue; 396 continue;