From f67389c017063692999eb9d4b42e3fd4782bf264 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 23 Jun 2016 16:13:28 +1000 Subject: [PATCH] lur: fix the index parsing for disconnect argv[3] is the /dev/hidraw path Signed-off-by: Peter Hutterer --- tools/lur-command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lur-command.c b/tools/lur-command.c index d080fd17..0a11ce68 100644 --- a/tools/lur-command.c +++ b/tools/lur-command.c @@ -243,7 +243,7 @@ main(int argc, char **argv) return EXIT_FAILURE; } - index = atoi(argv[3]); + index = atoi(argv[2]); disconnect_device(receiver, index); } else { usage();