From d2c3df7b052c1b6d05fc5c753c86c19fd2ffa010 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Mon, 16 Feb 2015 11:03:26 +0200 Subject: [PATCH] tools/btmgmt: Fix illegal memory access --- tools/btmgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index 7cf82e239..3ff072437 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -3392,7 +3392,7 @@ static char *cmd_generator(const char *text, int state) return strdup(cmd); } - while (j++ < NELEM(interactive_cmd)) { + while (j < NELEM(interactive_cmd)) { cmd = interactive_cmd[j++].cmd; if (!strncmp(cmd, text, len)) -- 2.47.3