Remove unnecessary argv buffer for launchpad-loader 23/53023/1
authorSangyoon Jang <s89.jang@samsung.com>
Tue, 1 Dec 2015 00:17:22 +0000 (09:17 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Tue, 1 Dec 2015 00:18:11 +0000 (09:18 +0900)
Change-Id: I1e749d708b62e157a4ef1b757860f30a60a71d33
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/launchpad.c

index 4cc02bf3ab4f2bd52a03eb9797559d6dde3c08c2..96cd586392bf84a25b48731629fc66524ca0b6cb 100755 (executable)
@@ -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;