diff options
author | Viral Mehta <viral.vkm@gmail.com> | 2010-04-20 09:53:12 +0530 |
---|---|---|
committer | Viral Mehta <viral.vkm@gmail.com> | 2010-04-20 09:53:12 +0530 |
commit | 918fb893e889b30fd1836668870a4a46586c8d25 (patch) | |
tree | 399bd8e43c9b194940a2c0331eede7fb47c15f50 /toolbox | |
parent | 705c944c0e2a50150ffb41707b6b3daebb45cf79 (diff) | |
download | system_core-918fb893e889b30fd1836668870a4a46586c8d25.zip system_core-918fb893e889b30fd1836668870a4a46586c8d25.tar.gz system_core-918fb893e889b30fd1836668870a4a46586c8d25.tar.bz2 |
fix insmod reading more than one module parameter
it seems wrong to put '/0' after reading one argument
if we are passing more than one module parameters, they are not being propogated
to the kernel properly.
Second module parameters onwards are simply being ignored by kernel
since insmod incorrectly put '/0' after reading first module parameter
Change-Id: I54283eb30a66a83d5c619ffb1fb174ccf5fdcaf7
Diffstat (limited to 'toolbox')
-rw-r--r-- | toolbox/insmod.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/toolbox/insmod.c b/toolbox/insmod.c index 44b9847..756a64b 100644 --- a/toolbox/insmod.c +++ b/toolbox/insmod.c @@ -77,7 +77,6 @@ int insmod_main(int argc, char **argv) memcpy(ptr, argv[i], len); ptr += len; *ptr++ = ' '; - *ptr++ = '\0'; } *(ptr - 1) = '\0'; } |