aboutsummaryrefslogtreecommitdiffstats
path: root/signal-composer-binding
diff options
context:
space:
mode:
Diffstat (limited to 'signal-composer-binding')
-rw-r--r--signal-composer-binding/signal-composer-binding.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/signal-composer-binding/signal-composer-binding.cpp b/signal-composer-binding/signal-composer-binding.cpp
index 44b644c..cc3b9a8 100644
--- a/signal-composer-binding/signal-composer-binding.cpp
+++ b/signal-composer-binding/signal-composer-binding.cpp
@@ -197,11 +197,11 @@ void get(struct afb_req request)
int loadConf()
{
int err = 0;
- const char* rootdir = strncat(GetBindingDirPath(), "/etc",
- sizeof(GetBindingDirPath()) - strlen(GetBindingDirPath()) -1);
+ std::string bindingDirPath = GetBindingDirPath();
+ std::string rootdir = bindingDirPath + "/etc";
Composer& composer = Composer::instance();
- err = composer.loadConfig(rootdir);
+ err = composer.loadConfig(rootdir.c_str());
return err;
}