mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 09:57:44 +01:00
Use Glib::build_filename in Session::new_midi_source_name()
git-svn-id: svn://localhost/ardour2/branches/3.0@12893 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c44917aed7
commit
e37a65dade
1 changed files with 2 additions and 3 deletions
|
|
@ -3343,10 +3343,9 @@ Session::new_midi_source_name (const string& base)
|
|||
|
||||
SessionDirectory sdir((*i).path);
|
||||
|
||||
sys::path p = sdir.midi_path();
|
||||
p /= legalized;
|
||||
std::string p = Glib::build_filename (sdir.midi_path(), legalized);
|
||||
|
||||
snprintf (buf, sizeof(buf), "%s-%u.mid", p.to_string().c_str(), cnt);
|
||||
snprintf (buf, sizeof(buf), "%s-%u.mid", p.c_str(), cnt);
|
||||
|
||||
if (Glib::file_test (buf, Glib::FILE_TEST_EXISTS)) {
|
||||
existing++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue