Explorar o código

ftp: fixed parsing "run" subcommand in telnet UI

Sergey Alirzaev %!s(int64=4) %!d(string=hai) anos
pai
achega
ffb9a61fc7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/cli/CLI_Commands.c

+ 1 - 1
modules/cli/CLI_Commands.c

@@ -504,7 +504,7 @@ static const CLI_Command_Definition_t prvFTPCommandDefinition = {
                          "\tftp pass <password>: задать пароль для аутентификации на FTP-сервере\r\n"
                          "\tftp run: запустить процесс обновления через FTP\r\n",
     prvTaskFTPCommand, /* The function to run. */
-    2
+    -1, // varying number of parameters
 };
 #endif