Display and control your Android device
Use size_t for command length
Romain Vimonteeb8e8420fcc
diff --git a/app/src/command.c b/app/src/command.cindex 2e116ac8..c30bebe0 100644--- a/app/src/command.c+++ b/app/src/command.c@@ -37,7 +37,7 @@ show_adb_err_msg(enum process_result err) {}process_t-adb_execute(const char *serial, const char *const adb_cmd[], int len) {+adb_execute(const char *serial, const char *const adb_cmd[], size_t len) {const char *cmd[len + 4];int i;process_t process;diff --git a/app/src/command.h b/app/src/command.hindex 6681f5ea..90eb7cb2 100644--- a/app/src/command.h+++ b/app/src/command.h@@ -49,7 +49,7 @@ boolcmd_simple_wait(process_t pid, exit_code_t *exit_code);process_t-adb_execute(const char *serial, const char *const adb_cmd[], int len);+adb_execute(const char *serial, const char *const adb_cmd[], size_t len);process_tadb_forward(const char *serial, uint16_t local_port,