From 1e64f0f931c2484ea6955205b83703776c03992b Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sun, 9 May 2021 11:06:02 +0200 Subject: [PATCH] Use ARRAY_LEN() macro --- app/src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/server.c b/app/src/server.c index 276e0bd6..4448ab95 100644 --- a/app/src/server.c +++ b/app/src/server.c @@ -306,7 +306,7 @@ execute_server(struct server *server, const struct server_params *params) { // Port: 5005 // Then click on "Debug" #endif - return adb_execute(server->serial, cmd, sizeof(cmd) / sizeof(cmd[0])); + return adb_execute(server->serial, cmd, ARRAY_LEN(cmd)); } static socket_t