diff --git a/examples/nsh/nsh_main.c b/examples/nsh/nsh_main.c index edcdf131da..53e7d5efdd 100644 --- a/examples/nsh/nsh_main.c +++ b/examples/nsh/nsh_main.c @@ -319,7 +319,7 @@ static const struct cmdmap_s g_cmdmap[] = #if defined(CONFIG_NET_TCP) && CONFIG_NFILE_DESCRIPTORS > 0 # ifndef CONFIG_EXAMPLES_NSH_DISABLE_GET - { "wget", cmd_wget, 2, 3, "[-o ] " }, + { "wget", cmd_wget, 2, 4, "[-o ] " }, # endif #endif diff --git a/examples/nsh/nsh_netcmds.c b/examples/nsh/nsh_netcmds.c index f9e0acc6c2..3d64e662f0 100644 --- a/examples/nsh/nsh_netcmds.c +++ b/examples/nsh/nsh_netcmds.c @@ -740,7 +740,7 @@ int cmd_wget(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) /* And perform the wget */ - ret = wget(argv[1], buffer, 512, wget_callback, (FAR void *)fd); + ret = wget(url, buffer, 512, wget_callback, (FAR void *)fd); if (ret < 0) { nsh_output(vtbl, g_fmtcmdfailed, argv[0], "wget", NSH_ERRNO);