Commit c2b71add authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] kconfig: off-by-one error

Use all of choice input and don't ignore last character.
parent ae1039c2
......@@ -360,7 +360,7 @@ static int conf_choice(struct menu *menu)
continue;
}
if (line[0]) {
len = strlen(line) - 1;
len = strlen(line);
line[len] = 0;
def_menu = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment