summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-12-04 17:35:21 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-19 16:38:38 +0100
commit6027a362447315d93eafd99bacaac0b1826e2c4c (patch)
treedf29e6f1ed1749db6fd33117ac51dcf292725203
parent4598ca8239bd10cfc2d77bff05cf77cf29819d88 (diff)
Avoid memory collision.
Change-Id: I805a725d6b9477fcb690d7c2c7cbb6bb4f112dfb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--filescan-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filescan-utils.c b/filescan-utils.c
index 37cc2b3..a20179c 100644
--- 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);