summaryrefslogtreecommitdiffstats
path: root/toolbox/insmod.c
diff options
context:
space:
mode:
authorViral Mehta <viral.vkm@gmail.com>2010-04-20 09:53:12 +0530
committerViral Mehta <viral.vkm@gmail.com>2010-04-20 09:53:12 +0530
commit918fb893e889b30fd1836668870a4a46586c8d25 (patch)
tree399bd8e43c9b194940a2c0331eede7fb47c15f50 /toolbox/insmod.c
parent705c944c0e2a50150ffb41707b6b3daebb45cf79 (diff)
downloadsystem_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/insmod.c')
-rw-r--r--toolbox/insmod.c1
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';
}