From 182efe788c72fbda84813c8087abc3cc00706d8f Mon Sep 17 00:00:00 2001 From: Jaesung Ku Date: Fri, 12 Apr 2013 21:45:43 +0900 Subject: [PATCH] Update for AppPath Change-Id: I1ffbf91854adee97ca5e8464c527a56457dd9248 Signed-off-by: Jaesung Ku --- src/app/FApp_AppInfo.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/FApp_AppInfo.cpp b/src/app/FApp_AppInfo.cpp index 892a4f8..20db932 100644 --- a/src/app/FApp_AppInfo.cpp +++ b/src/app/FApp_AppInfo.cpp @@ -164,6 +164,7 @@ _AppInfo::Construct(const char* appId, const char* exeName, int argc, char* argv int len = strlen(PACKAGE_PATH_FORMAT2); strncpy(appInfoPath, PACKAGE_PATH_FORMAT2, len); appInfoPath[len] = '\0'; + strncpy(appInfoPath + strlen(PATH_ROOT2), appId, MAX_APPID); if (access(appInfoPath, R_OK) != 0) { @@ -173,12 +174,7 @@ _AppInfo::Construct(const char* appId, const char* exeName, int argc, char* argv strncpy(appInfoPath + strlen(PATH_ROOT), appId, MAX_APPID); } - else - { - strncpy(appInfoPath + strlen(PATH_ROOT2), appId, MAX_APPID); - } #endif - // app root directory file descriptor __appRootDirFd = open(appInfoPath, O_RDONLY | O_CLOEXEC | O_DIRECTORY); -- 2.7.4