summaryrefslogtreecommitdiff
path: root/nuttx/binfmt
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-06-15 13:22:44 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-06-15 13:22:44 -0600
commita4017cd2c995ccedae2e604294b1c1f4736e08b5 (patch)
treea3652d00bcb2c27ae9a64c7787410655ddd119d9 /nuttx/binfmt
parent70b01d5396e2931ade9452925dc1e96be2318012 (diff)
downloadnuttx-a4017cd2c995ccedae2e604294b1c1f4736e08b5.tar.gz
nuttx-a4017cd2c995ccedae2e604294b1c1f4736e08b5.tar.bz2
nuttx-a4017cd2c995ccedae2e604294b1c1f4736e08b5.zip
Fix an error in exec(). argv[] has not being passed
Diffstat (limited to 'nuttx/binfmt')
-rw-r--r--nuttx/binfmt/binfmt_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/binfmt/binfmt_exec.c b/nuttx/binfmt/binfmt_exec.c
index c175de3b9..446df6373 100644
--- a/nuttx/binfmt/binfmt_exec.c
+++ b/nuttx/binfmt/binfmt_exec.c
@@ -80,7 +80,7 @@
* exits.
*
* Input Parameter:
- * filename - Fulll path to the binary to be loaded
+ * filename - Full path to the binary to be loaded
* argv - Argument list
* exports - Table of exported symbols
* nexports - The number of symbols in exports
@@ -112,6 +112,7 @@ int exec(FAR const char *filename, FAR char * const *argv,
/* Load the module into memory */
bin->filename = filename;
+ bin->argv = argv;
bin->exports = exports;
bin->nexports = nexports;
@@ -189,4 +190,3 @@ int exec(FAR const char *filename, FAR char * const *argv,
}
#endif /* CONFIG_BINFMT_DISABLE */
-