summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/launchpad_lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/launchpad_lib.c b/src/launchpad_lib.c
index 71da029..2723280 100644
--- a/src/launchpad_lib.c
+++ b/src/launchpad_lib.c
@@ -311,9 +311,12 @@ static int __before_loop(int argc, char **argv)
/* TODO : should be add to check permission in the kernel*/
setsid();
+ memset(argv[LOADER_ARG_TYPE], 0, strlen(argv[LOADER_ARG_TYPE]));
+ memset(argv[LOADER_ARG_ID], 0, strlen(argv[LOADER_ARG_ID]));
if (argc > 3) {
extra = bundle_decode((bundle_raw *)argv[LOADER_ARG_EXTRA],
strlen(argv[LOADER_ARG_EXTRA]));
+ memset(argv[LOADER_ARG_EXTRA], 0, strlen(argv[LOADER_ARG_EXTRA]));
}
if (__loader_callbacks->create) {