projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kconfig: fix bug in search results string: use strlen(gstr->s), not gstr->len
[firefly-linux-kernel-4.4.55.git]
/
scripts
/
kconfig
/
menu.c
diff --git
a/scripts/kconfig/menu.c
b/scripts/kconfig/menu.c
index 9e69f1934836e17c85025387d4073746005012a8..db1512ae30cc48d6f2ea87bc26a082a084551811 100644
(file)
--- a/
scripts/kconfig/menu.c
+++ b/
scripts/kconfig/menu.c
@@
-584,7
+584,7
@@
static void get_prompt_str(struct gstr *r, struct property *prop,
for (j = 4; --i >= 0; j += 2) {
menu = submenu[i];
if (head && location && menu == location)
- jump->offset =
r->len - 1
;
+ jump->offset =
strlen(r->s)
;
str_printf(r, "%*c-> %s", j, ' ',
_(menu_get_prompt(menu)));
if (menu->sym) {