mac:use strcat()
This commit is contained in:
parent
e4f16c2005
commit
cca34f16dd
@ -2276,8 +2276,9 @@ void Options::load(bool lightweight)
|
|||||||
std::string homebuf{homedir};
|
std::string homebuf{homedir};
|
||||||
int homelength = strlen(homebuf.c_str());
|
int homelength = strlen(homebuf.c_str());
|
||||||
homebuf[homelength-44] = '\0';
|
homebuf[homelength-44] = '\0';
|
||||||
std::string configpath = homebuf + "/Application Support/RawTherapee/config";
|
std::string homeconfig{homebuf};
|
||||||
path = configpath.c_str();
|
std::strcat(homeconfig, "/Application Support/RawTherapee/config");
|
||||||
|
path = homebuf.c_str();
|
||||||
std::cout<<path<<std::endl;
|
std::cout<<path<<std::endl;
|
||||||
#else
|
#else
|
||||||
path = g_getenv("RT_SETTINGS");
|
path = g_getenv("RT_SETTINGS");
|
||||||
@ -2326,7 +2327,8 @@ void Options::load(bool lightweight)
|
|||||||
|
|
||||||
// Modify the path of the cache folder to the one provided in RT_CACHE environment variable. Build the cache folder name in macOS.
|
// Modify the path of the cache folder to the one provided in RT_CACHE environment variable. Build the cache folder name in macOS.
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
std::string cachepath = homebuf + "/Application Support/RawTherapee/cache";
|
std::string homecache{homebuf};
|
||||||
|
std::strcat(homecache + "/Application Support/RawTherapee/cache");
|
||||||
path = cachepath.c_str();
|
path = cachepath.c_str();
|
||||||
std::cout<<path<<std::endl;
|
std::cout<<path<<std::endl;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user