From: Jaesung Ku Date: Fri, 12 Apr 2013 12:45:43 +0000 (+0900) Subject: Update for AppPath X-Git-Tag: accepted/tizen_2.1/20130425.034849~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=182efe788c72fbda84813c8087abc3cc00706d8f;p=framework%2Fosp%2Fappfw.git Update for AppPath Change-Id: I1ffbf91854adee97ca5e8464c527a56457dd9248 Signed-off-by: Jaesung Ku --- 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);