mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-01-22 07:04:32 +01:00
Use size_t for command length
The size of an array should have type size_t.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user