diff --git a/repertory/librepertory/src/app_config.cpp b/repertory/librepertory/src/app_config.cpp index 9fc65531..88ff5e51 100644 --- a/repertory/librepertory/src/app_config.cpp +++ b/repertory/librepertory/src/app_config.cpp @@ -706,6 +706,7 @@ void app_config::save() { } config_changed_ = false; json data = get_json(); + std::cout << "saving: " << data.dump() << std::endl; auto success = false; for (auto i = 0U; not success && (i < retry_save_count); i++) { success = utils::file::write_json_file(file_path, data); diff --git a/support/3rd_party/include/utils/file.hpp b/support/3rd_party/include/utils/file.hpp index c07f0699..20a982c2 100644 --- a/support/3rd_party/include/utils/file.hpp +++ b/support/3rd_party/include/utils/file.hpp @@ -79,7 +79,7 @@ public: std::size_t *total_written = nullptr) -> bool { auto str_data = data.dump(); return write_(reinterpret_cast(str_data.c_str()), - data.size(), 0U, total_written); + str_data.size(), 0U, total_written); } #endif // defined(PROJECT_ENABLE_JSON)