summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangyoon Jang <s89.jang@samsung.com>2015-12-01 09:17:22 +0900
committerSangyoon Jang <s89.jang@samsung.com>2015-12-01 09:18:11 +0900
commit607990c01ea326407546bdae631986c76e915054 (patch)
tree5f984fb962f578d77d64207c38ac7beeab97b222
parent71dfc4f8c2a2600805c0fb56d3ed93cd56ab8f58 (diff)
downloadlaunchpad-607990c01ea326407546bdae631986c76e915054.tar.gz
launchpad-607990c01ea326407546bdae631986c76e915054.tar.bz2
launchpad-607990c01ea326407546bdae631986c76e915054.zip
Remove unnecessary argv buffer for launchpad-loader
Change-Id: I1e749d708b62e157a4ef1b757860f30a60a71d33 Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
-rwxr-xr-xsrc/launchpad.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/launchpad.c b/src/launchpad.c
index 4cc02bf..96cd586 100755
--- a/src/launchpad.c
+++ b/src/launchpad.c
@@ -303,17 +303,13 @@ static void __send_result_to_caller(int clifd, int ret, const char* app_path)
static void __prepare_candidate_process(int type)
{
int pid;
+ char type_str[2] = {0, };
+ char *argv[] = {"/usr/bin/launchpad-loader", NULL, NULL};
__candidate[type].last_exec_time = time(NULL);
pid = fork();
if (pid == 0) { /* child */
- char type_str[2] = {0,};
-
- /* execute with very long (1024 bytes) argument in order to prevent argv overflow caused by dlopen */
- char *argv[] = {"/usr/bin/launchpad-loader", NULL,
- " ", NULL
- };
__signal_unblock_sigchld();
type_str[0] = '0' + type;