Hi Maxime, On Thu, Dec 22, 2016 at 12:36 PM, Maxime Chevallier <maxime.chevallier@xxxxxxxx> wrote: > Fix the interactive "set-security" command in btgatt-client, that would > always fail due to bad initialization of argv buffer : > > [GATT client]# set-security 2 > Usage: set_security <level> > level: 1-3 > e.g.: > set-sec-level 2 > --- > tools/btgatt-client.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c > index 40a03b1..afe00aa 100644 > --- a/tools/btgatt-client.c > +++ b/tools/btgatt-client.c > @@ -1198,8 +1198,7 @@ static void set_security_usage(void) > > static void cmd_set_security(struct client *cli, char *cmd_str) > { > - char *argvbuf[1]; > - char **argv = argvbuf; > + char *argv[2]; > int argc = 0; > char *endptr = NULL; > int level; > -- > 2.1.4 Applied, thanks. -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html