You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ar...@apache.org on 2021/01/13 08:40:31 UTC

[incubator-nuttx-apps] 02/02: nsh: Pass the correct command lines to nsh_consolemain

This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 6aca60133c663cae0de8fa31a64b472f8675fcbb
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Jan 3 23:55:39 2021 -0800

    nsh: Pass the correct command lines to nsh_consolemain
    
    Change-Id: Ic6617cecb6949054e6bdce8757523e7a60d83eb0
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 examples/pty_test/pty_test.c | 2 +-
 system/adb/shell_pipe.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/pty_test/pty_test.c b/examples/pty_test/pty_test.c
index 8bfbc72..ffa09ee 100644
--- a/examples/pty_test/pty_test.c
+++ b/examples/pty_test/pty_test.c
@@ -382,7 +382,7 @@ int main(int argc, FAR char *argv[])
 
   pid = task_create("NSH Console", CONFIG_EXAMPLES_PTYTEST_DAEMONPRIO,
                     CONFIG_EXAMPLES_PTYTEST_STACKSIZE, nsh_consolemain,
-                    argv);
+                    &argv[1]);
   if (pid < 0)
     {
       /* Can't do output because stdout and stderr are redirected */
diff --git a/system/adb/shell_pipe.c b/system/adb/shell_pipe.c
index 1cf8dc2..762476b 100644
--- a/system/adb/shell_pipe.c
+++ b/system/adb/shell_pipe.c
@@ -230,7 +230,7 @@ int shell_pipe_exec(char * const argv[], shell_pipe_t *apipe,
 
   ret = task_create("ADB shell", CONFIG_SYSTEM_NSH_PRIORITY,
                     CONFIG_SYSTEM_NSH_STACKSIZE, nsh_consolemain,
-                    argv);
+                    &argv[1]);
 
   /* Close stdin and stdout */