From 7c3351a5e0b3758b3d93a99e0d7068347451e053 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 1 Mar 2017 09:19:32 +0100 Subject: [PATCH] libusb: remove parsed -u argument from command line arguments before passing it to btstack_main() --- port/libusb/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/port/libusb/main.c b/port/libusb/main.c index ac90f5e8a..8affa4f28 100644 --- a/port/libusb/main.c +++ b/port/libusb/main.c @@ -116,6 +116,8 @@ int main(int argc, const char * argv[]){ port_str = delimiter+1; } printf("\n"); + argc -= 2; + memmove(&argv[0], &argv[2], argc * sizeof(char *)); } /// GET STARTED with BTstack ///