From 06beabc17e997464cfafd35706ce4e65864e8da0 Mon Sep 17 00:00:00 2001 From: Jaeho Lee Date: Mon, 7 Jan 2013 18:12:01 +0900 Subject: [PATCH] fixed prevent issues Signed-off-by: Jaeho Lee --- packaging/app-core.spec | 2 +- src/appcore.c | 3 ++- 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) -- 2.7.4