projects
/
platform
/
core
/
appfw
/
pkgmgr-tool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d528d29
)
Fix definition of length of pkg path
29/235029/1
author
Junghyun Yeon
<jungh.yeon@samsung.com>
Tue, 2 Jun 2020 01:09:05 +0000
(10:09 +0900)
committer
Junghyun Yeon
<jungh.yeon@samsung.com>
Tue, 2 Jun 2020 01:09:05 +0000
(10:09 +0900)
Change-Id: I01afa342c3b1867268269d02767584b412803da2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/pkg_cmd.c
patch
|
blob
|
history
diff --git
a/src/pkg_cmd.c
b/src/pkg_cmd.c
index
21d23b9
..
b113333
100644
(file)
--- a/
src/pkg_cmd.c
+++ b/
src/pkg_cmd.c
@@
-306,8
+306,8
@@
static int __convert_to_absolute_path(pm_tool_args *data)
printf("realpath fail: %d\n", errno);
return -1;
}
- ret = snprintf(data->pkg_path, P
KG_NAME_STRING_LEN
_MAX - 1, "%s", abs);
- if (ret < 0 || ret > P
KG_NAME_STRING_LEN
_MAX - 1) {
+ ret = snprintf(data->pkg_path, P
ATH
_MAX - 1, "%s", abs);
+ if (ret < 0 || ret > P
ATH
_MAX - 1) {
printf("snprintf fail\n");
return -1;
}