Incorporated cleanups requested by Vas Crabb

This commit is contained in:
Nathan Woods 2016-06-24 07:55:10 -04:00
parent 4ddfc6a6e4
commit 7509a56dc0
2 changed files with 2 additions and 2 deletions

View File

@ -568,7 +568,7 @@ void running_machine::set_saveload_filename(const char *filename)
// take into account the statename option
const char *stateopt = options().state_name();
std::string statename = get_statename(stateopt);
m_saveload_pending_file = string_format("%s%s%s.sta", statename.c_str(), PATH_SEPARATOR, filename);
m_saveload_pending_file = string_format("%s%s%s.sta", statename, PATH_SEPARATOR, filename);
}
}

View File

@ -381,7 +381,7 @@ std::unique_ptr<osd::directory::entry> osd_stat(const std::string &path)
// create an osd::directory::entry; be sure to make sure that the caller can
// free all resources by just freeing the resulting osd::directory::entry
osd::directory::entry *result = (osd::directory::entry *) operator new(sizeof(*result) + path.length() + 1);
osd::directory::entry *result = (osd::directory::entry *) ::operator new(sizeof(*result) + path.length() + 1);
if (!result)
return nullptr;
strcpy(((char *) result) + sizeof(*result), path.c_str());