[FIX] Prevent issue 70/27070/3
authorDmitry Kovalenko <d.kovalenko@samsung.com>
Thu, 4 Sep 2014 05:37:06 +0000 (09:37 +0400)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Thu, 4 Sep 2014 09:44:51 +0000 (02:44 -0700)
Change-Id: I23746faee962765b5f8e0483e5989898a1cfe4e7
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
daemon/utils.c

index cb0b833..b6c88c7 100644 (file)
@@ -392,7 +392,7 @@ int is_same_app_process(char* appPath, int pid)
        char buf_res[PATH_MAX];
        char tPath_res[PATH_MAX];
 
-       strcpy(tPath, appPath);
+       strncpy(tPath, appPath, PATH_MAX - 1);
        tlen = strlen(tPath);
        if(strcmp(tPath + tlen - 4, ".exe") == 0)
        {