aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-12-04 17:35:21 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 14:12:02 +0100
commit2e3e379bb25ac77f6b4faf58180abdbebe4e059a (patch)
tree70d52d19bb683a111af04f573d0491ffa8af55bc
parent0d04ca30e57f9f83a45126e94b082ff14fca8892 (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);