Code Review
/
apps
/
app-afb-helpers-submodule.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
88307ba
)
Avoid memory collision.
author
Romain Forlot
<romain.forlot@iot.bzh>
Mon, 4 Dec 2017 16:35:21 +0000
(17:35 +0100)
committer
Romain Forlot
<romain.forlot@iot.bzh>
Fri, 8 Dec 2017 19:15:53 +0000
(20:15 +0100)
Change-Id: I805a725d6b9477fcb690d7c2c7cbb6bb4f112dfb
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
filescan-utils.c
patch
|
blob
|
history
diff --git
a/filescan-utils.c
b/filescan-utils.c
index
37cc2b3
..
a20179c
100644
(file)
--- a/
filescan-utils.c
+++ b/
filescan-utils.c
@@
-120,7
+120,7
@@
PUBLIC const char *GetBinderName() {
binderName= getenv("AFB_BINDER_NAME");
if (!binderName) {
- char psName[17];
+
static
char psName[17];
// retrieve binder name from process name afb-name-trailer
prctl(PR_GET_NAME, psName,NULL,NULL,NULL);
binderName=(char*)GetMidleName(psName);