summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeho Lee <jaeho81.lee@samsung.com>2013-01-07 18:12:01 +0900
committerJaeho Lee <jaeho81.lee@samsung.com>2013-01-07 18:12:01 +0900
commit06beabc17e997464cfafd35706ce4e65864e8da0 (patch)
tree3327b6523781e0786a0a3f0df899614d2c295963
parent6b5515ed66418f7ac029464901186441398c891d (diff)
downloadapp-core-06beabc17e997464cfafd35706ce4e65864e8da0.tar.gz
app-core-06beabc17e997464cfafd35706ce4e65864e8da0.tar.bz2
app-core-06beabc17e997464cfafd35706ce4e65864e8da0.zip
fixed prevent issues
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
-rw-r--r--packaging/app-core.spec2
-rwxr-xr-xsrc/appcore.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/packaging/app-core.spec b/packaging/app-core.spec
index 3366b51..e717bf5 100644
--- a/packaging/app-core.spec
+++ b/packaging/app-core.spec
@@ -2,7 +2,7 @@
Name: app-core
Summary: Application basic
Version: 1.2
-Release: 39
+Release: 40
Group: TO_BE/FILLED_IN
License: Apache License, Version 2.0
Source0: app-core-%{version}.tar.gz
diff --git a/src/appcore.c b/src/appcore.c
index 9e08062..ace9e89 100755
--- a/src/appcore.c
+++ b/src/appcore.c
@@ -143,7 +143,8 @@ static int __get_dir_name(char *dirname)
if (pid < 0)
return -1;
- aul_app_get_pkgname_bypid(pid, pkg_name, PKGNAME_MAX);
+ if (aul_app_get_pkgname_bypid(pid, pkg_name, PKGNAME_MAX) != AUL_R_OK)
+ return -1;
r = snprintf(dirname, PATH_MAX, PATH_APP_ROOT "/%s" PATH_RES PATH_LOCALE,pkg_name);
if (r < 0)