summaryrefslogtreecommitdiff
path: root/appinfo
diff options
context:
space:
mode:
authorYong Song <yong.song@samsung.com>2013-08-14 09:46:10 +0900
committerYong Song <yong.song@samsung.com>2013-08-14 09:46:10 +0900
commit16f98cfa066dbaaa4ec1098ef14f099c8f53bb57 (patch)
tree493f9ed78ad4826594b4f48e300cfa4473ea0ac6 /appinfo
parentf2c009c1543478d6442e547ebfa0358ed9e99a10 (diff)
downloadenv-config-16f98cfa066dbaaa4ec1098ef14f099c8f53bb57.tar.gz
env-config-16f98cfa066dbaaa4ec1098ef14f099c8f53bb57.tar.bz2
env-config-16f98cfa066dbaaa4ec1098ef14f099c8f53bb57.zip
fix prevent issue
Change-Id: I83af47a421437e3b44eb6146caed7a6065d1d68c
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/appinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/appinfo/appinfo.c b/appinfo/appinfo.c
index d3c0718..5078f24 100644
--- a/appinfo/appinfo.c
+++ b/appinfo/appinfo.c
@@ -358,7 +358,7 @@ int appinfo_update_submode_execname_and_appid(const char* execname)
}
const size_t max_len = MAX_APPID - MAX_OSP_PKGID - 1;
- const size_t size = MIN(strlen(execname) - 1, max_len - 1);
+ const size_t size = MIN(strlen(execname), max_len - 1);
strncpy(__appid + MAX_OSP_PKGID + 1, execname, size);
__appid[size + MAX_OSP_PKGID + 1] = '\0';