idevicedebug: Fix invalid write due to out of bounds access
diff --git a/tools/idevicedebug.c b/tools/idevicedebug.c
index 9d0c561..c8772ed 100644
--- a/tools/idevicedebug.c
+++ b/tools/idevicedebug.c
@@ -414,7 +414,7 @@
 			/* set arguments and run app */
 			debug_info("Setting argv...");
 			i++; /* i is the offset of the bundle identifier, thus skip it */
-			int app_argc = (argc - i + 1);
+			int app_argc = (argc - i + 2);
 			char **app_argv = (char**)malloc(sizeof(char*) * app_argc);
 			app_argv[0] = path;
 			debug_info("app_argv[%d] = %s", 0, app_argv[0]);