Eliminate double dot in temporary file names

Probably didn't cause any problems, but it was slightly ugly.
This commit is contained in:
Thomas Goyne 2013-07-02 20:05:06 -07:00
parent af74371f6d
commit dd49539555
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ std::unique_ptr<std::ifstream> Open(fs::path const& file, bool binary) {
Save::Save(fs::path const& file, bool binary)
: file_name(file)
, tmp_name(unique_path(file.parent_path()/(file.stem().string() + "_tmp_%%%%." + file.extension().string())))
, tmp_name(unique_path(file.parent_path()/(file.stem().string() + "_tmp_%%%%" + file.extension().string())))
{
LOG_D("agi/io/save/file") << file;
acs::CheckDirWrite(file.parent_path());