not to add space at last of argument 10/64610/1 accepted/tizen/common/20160406.143417 accepted/tizen/ivi/20160406.012033 accepted/tizen/mobile/20160406.011909 accepted/tizen/tv/20160406.011951 accepted/tizen/wearable/20160406.012013 submit/tizen/20160405.001024
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 4 Apr 2016 07:39:57 +0000 (16:39 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 4 Apr 2016 07:39:57 +0000 (16:39 +0900)
Change-Id: I4ccfc956b5b4829f37519c5cbd7816f31afc6132
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/request.c

index 3e89ed1..35587d1 100644 (file)
@@ -197,7 +197,8 @@ static int __handle_request_install(uid_t uid,
 
        for (i = 0; i < args_count; i++) {
                strncat(args, tmp_args[i], strlen(tmp_args[i]));
-               strncat(args, " ", strlen(" "));
+               if (i != args_count - 1)
+                       strncat(args, " ", strlen(" "));
        }
 
        if (target_uid == (uid_t)-1 || pkgtype == NULL) {