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-08 20:15:53 +0100
commite0c00c4b88e0d67bb352f22623caa4c306205bc5 (patch)
tree70d52d19bb683a111af04f573d0491ffa8af55bc
parent88307badb86a1252b0286e29ac3c1165bbee680d (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);