From c1c8f7b0f1b0df84bf3c02e839c38804a04e19f3 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 9 Aug 2017 10:33:27 -0700 Subject: [PATCH] fix string concat errors --- brightray/browser/browser_main_parts.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/brightray/browser/browser_main_parts.cc b/brightray/browser/browser_main_parts.cc index c7ed4c6752aa..b3c25342916a 100644 --- a/brightray/browser/browser_main_parts.cc +++ b/brightray/browser/browser_main_parts.cc @@ -6,6 +6,7 @@ #include #include +#include #include "base/command_line.h" #include "base/feature_list.h" @@ -99,7 +100,7 @@ void OverrideWinAppLogsPath() { std::string logPath = "%HOMEDRIVE%%HOMEPATH%\AppData\Roaming\\"; std::string appLogPath = logPath + appName + "\logs"; - int status = mkdir(appLogPath, S_IRWXU | S_IRGRP | S_IROTH); + int status = mkdir(appLogPath.c_str(), S_IRWXU | S_IRGRP | S_IROTH); PathService::Override(DIR_APP_LOGS, base::FilePath(appLogPath)); } @@ -107,9 +108,9 @@ void OverrideWinAppLogsPath() { void OverrideLinuxAppLogsPath() { std::string appName = GetApplicationName(); char* homePath = getenv("HOME"); - std::string appLogPath = homePath + "/.config/" + appName; + std::string appLogPath = std:string(homePath) + "/.config/" + appName + "/logs"; - int status = mkdir(appLogPath, S_IRWXU | S_IRGRP | S_IROTH); + int status = mkdir(appLogPath.c_str(), S_IRWXU | S_IRGRP | S_IROTH); PathService::Override(DIR_APP_LOGS, base::FilePath(appLogPath)); }