From 918fb893e889b30fd1836668870a4a46586c8d25 Mon Sep 17 00:00:00 2001 From: Viral Mehta Date: Tue, 20 Apr 2010 09:53:12 +0530 Subject: [PATCH] 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 --- toolbox/insmod.c | 1 - 1 file changed, 1 deletion(-) diff --git a/toolbox/insmod.c b/toolbox/insmod.c index 44b98474b..756a64b94 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'; }