diff --git a/src/book.cpp b/src/book.cpp index bd1eba6..a5e2f5f 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -295,8 +295,8 @@ std::vector list_spine(const fs::path &filepath) << format(translate("{0:s} is damaged. Could not read spine. " "Skipping file.\n") .str() - .data(), - filepath); + .c_str(), + filepath.c_str()); return {}; } diff --git a/src/output.cpp b/src/output.cpp index 288bfcc..dadb3f6 100644 --- a/src/output.cpp +++ b/src/output.cpp @@ -45,7 +45,7 @@ void print_matches(const std::vector &matches, cout << termcolor::yellow; } cout << format(translate(" In {0:s}: \n").str().c_str(), - fs::relative(matches[0].filepath_epub)); + fs::relative(matches[0].filepath_epub).c_str()); if (!opts.nocolor) { cout << termcolor::reset;