diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-24 14:25:18 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-30 20:23:26 +0200 |
commit | 4d5a9be0dcdffa64faf8020185c600890f2391b4 (patch) | |
tree | 7e62f6e88900020035f1d18a18d75d4712f2d95a | |
parent | a6e358b2f5b219fda18a7bc9348cb969043c19d5 (diff) | |
download | barebox-4d5a9be0dcdffa64faf8020185c600890f2391b4.tar.gz barebox-4d5a9be0dcdffa64faf8020185c600890f2391b4.tar.xz |
complete: fix parameter complete with multiple '.'
When a device parameter has dots in its name, we have to use strchr instead
of strrchr, because the devicename ends at the first dot, not at the last one.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | common/complete.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/complete.c b/common/complete.c index 0780888cae..a6889ed5bb 100644 --- a/common/complete.c +++ b/common/complete.c @@ -221,7 +221,7 @@ static int env_param_complete(struct string_list *sl, char *instr, int eval) end = ' '; } - instr_param = strrchr(instr, '.'); + instr_param = strchr(instr, '.'); len = strlen(instr); current_c = get_current_context(); |