From 49631972db5b965413d4bbe36983a8d5bd203183 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Apr 2017 06:23:19 +0300 Subject: Use pathJoin for concatinate some paths. --- src/configmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configmanager.cpp') diff --git a/src/configmanager.cpp b/src/configmanager.cpp index 78182477c..f1232235a 100644 --- a/src/configmanager.cpp +++ b/src/configmanager.cpp @@ -55,7 +55,7 @@ static void setDefaultOption(const char *const name, */ void ConfigManager::initServerConfig(const std::string &serverName) { - settings.serverConfigDir = settings.configDir + dirSeparator + serverName; + settings.serverConfigDir = pathJoin(settings.configDir, serverName); if (mkdir_r(settings.serverConfigDir.c_str())) { -- cgit v1.2.3-70-g09d2