diff --git a/source_files/obsidian_main/lib_util.cc b/source_files/obsidian_main/lib_util.cc index afce450c0..e1673fcd7 100644 --- a/source_files/obsidian_main/lib_util.cc +++ b/source_files/obsidian_main/lib_util.cc @@ -125,7 +125,7 @@ FILE *FileOpen(std::string_view name, std::string_view mode) } bool FileRename(std::string_view oldname, std::string_view newname) { - return rename(oldname.c_str(), newname.c_str()) == 0; + return rename(std::string(oldname).c_str(), std::string(newname).c_str()) == 0; } bool FileDelete(std::string_view name) { diff --git a/source_files/slump/slump.h b/source_files/slump/slump.h index 840f5d50b..916283c9f 100644 --- a/source_files/slump/slump.h +++ b/source_files/slump/slump.h @@ -29,6 +29,7 @@ * - Please do not call any derivative of this program SLIGE. */ +#include #include #include