From 038da647b999c9f5183e8459e5d39b9450c1d078 Mon Sep 17 00:00:00 2001 From: Radoslaw Kaczorowski Date: Mon, 24 Jun 2019 13:51:06 +0700 Subject: fix config path for dlt-dbus use default config path relative to CONFIGURATION_FILES_DIR Signed-off-by: Vo Trung Chi --- src/dbus/dlt-dbus-options.c | 6 +++--- src/dbus/dlt-dbus.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dbus') diff --git a/src/dbus/dlt-dbus-options.c b/src/dbus/dlt-dbus-options.c index fc5b584..d00cdc4 100644 --- a/src/dbus/dlt-dbus-options.c +++ b/src/dbus/dlt-dbus-options.c @@ -82,21 +82,21 @@ int read_command_line(DltDBusCliOptions *options, int argc, char *argv[]) { options->BusType = malloc(strlen(optarg) + 1); MALLOC_ASSERT(options->BusType); - strcpy(options->BusType, optarg); /* strcpy unritical here, because size matches exactly the size to be copied */ + strcpy(options->BusType, optarg); /* strcpy uncritical here, because size matches exactly the size to be copied */ break; } case 'a': { options->ApplicationId = malloc(strlen(optarg) + 1); MALLOC_ASSERT(options->ApplicationId); - strcpy(options->ApplicationId, optarg); /* strcpy unritical here, because size matches exactly the size to be copied */ + strcpy(options->ApplicationId, optarg); /* strcpy uncritical here, because size matches exactly the size to be copied */ break; } case 'c': { options->ConfigurationFileName = malloc(strlen(optarg) + 1); MALLOC_ASSERT(options->ConfigurationFileName); - strcpy(options->ConfigurationFileName, optarg); /* strcpy unritical here, because size matches exactly the size to be copied */ + strcpy(options->ConfigurationFileName, optarg); /* strcpy uncritical here, because size matches exactly the size to be copied */ break; } case 'h': diff --git a/src/dbus/dlt-dbus.h b/src/dbus/dlt-dbus.h index 6f553d9..05bddf1 100644 --- a/src/dbus/dlt-dbus.h +++ b/src/dbus/dlt-dbus.h @@ -31,7 +31,7 @@ #include "dlt.h" #include "dlt_common.h" -#define DEFAULT_CONF_FILE "/etc/dlt-dbus.conf" +#define DEFAULT_CONF_FILE CONFIGURATION_FILES_DIR "/dlt-dbus.conf" #define DLT_DBUS_FILTER_MAX 32 -- cgit v1.2.1