projects
/
platform
/
core
/
connectivity
/
stc-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97884d0
)
Fix asan build issue
55/245155/1
submit/tizen/20201006.003715
author
hyunuk.tak
<hyunuk.tak@samsung.com>
Mon, 5 Oct 2020 02:29:22 +0000
(11:29 +0900)
committer
hyunuk.tak
<hyunuk.tak@samsung.com>
Mon, 5 Oct 2020 02:29:22 +0000
(11:29 +0900)
Change-Id: Ic6ade44a07405d2ce87037318bc51dccf64b7797
manager/helper/helper-procfs.c
patch
|
blob
|
history
diff --git
a/manager/helper/helper-procfs.c
b/manager/helper/helper-procfs.c
index 837e1d93a26103a9b3fa80dfb46e74192a629479..f68dc00953d31c5fe739f7c71ae9d5f593c1cdc8 100644
(file)
--- a/
manager/helper/helper-procfs.c
+++ b/
manager/helper/helper-procfs.c
@@
-78,7
+78,7
@@
API int proc_get_cmdline(pid_t pid, char *cmdline)
filename = filename + 1;
}
- strncpy(cmdline, filename, PROC_NAME_MAX
- 1
);
+ strncpy(cmdline, filename, PROC_NAME_MAX);
cmdline[PROC_NAME_MAX - 1] = '\0';
return STC_ERROR_NONE;