X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-config.c;h=87fad97ef1bf771a39010b2d7f280b1b500f6ef0;hb=5715fd569d6f8258830bb1808f9b65bde72cc5cd;hp=fcc69a418c0f9ad1383a49b144c28105c1342a3f;hpb=dfe85ca516c207eadc4ae77066c6706f17068f20;p=src%2Fapp-framework-binder.git diff --git a/src/afb-config.c b/src/afb-config.c index fcc69a41..87fad97e 100644 --- a/src/afb-config.c +++ b/src/afb-config.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015-2018 "IoT.bzh" + * Copyright (C) 2015-2019 "IoT.bzh" * Author José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -366,7 +366,7 @@ static void printVersion(FILE * file) AFB_VERSION ); fprintf(file, - " Copyright (C) 2015-2018 \"IoT.bzh\"\n" + " Copyright (C) 2015-2019 \"IoT.bzh\"\n" " AFB comes with ABSOLUTELY NO WARRANTY.\n" " Licence Apache 2\n" "\n"); @@ -969,7 +969,7 @@ void afb_config_dump(struct json_object *config) static void on_environment(struct json_object *config, int optid, const char *name, void (*func)(struct json_object*, int, const char*)) { - char *value = getenv(name); + char *value = secure_getenv(name); if (value && *value) func(config, optid, value); @@ -977,7 +977,7 @@ static void on_environment(struct json_object *config, int optid, const char *na static void on_environment_enum(struct json_object *config, int optid, const char *name, int (*func)(const char*)) { - char *value = getenv(name); + char *value = secure_getenv(name); if (value) { if (func(value) == -1) @@ -989,7 +989,7 @@ static void on_environment_enum(struct json_object *config, int optid, const cha static void on_environment_bool(struct json_object *config, int optid, const char *name) { - char *value = getenv(name); + char *value = secure_getenv(name); int asbool; if (value) {