diff --git a/src/styleengine.cc b/src/styleengine.cc index 1c4462b..f0f73df 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -1074,11 +1074,11 @@ void StyleEngine::init () { } void StyleEngine::buildUserStyle () { - char *filename = dStrconcat(dGethomedir(), "/.flenser/style.css", NULL); + using namespace std::literals::string_literals; + std::string filename = dGethomedir() + "/.flenser/style.css"s; - const std::string style= a_Misc_file2dstr(filename); + const std::string style= a_Misc_file2dstr(filename.c_str()); if (not style.empty()) { CssParser::parse (NULL,NULL,cssContext, style.c_str(), style.size(), CSS_ORIGIN_USER); } - dFree (filename); }