diff options
author | Robin Gareus <robin@gareus.org> | 2013-05-16 21:14:02 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-05-16 21:14:02 +0200 |
commit | 31a05b01e6a687fba438a05ad06250fc6cd2f4ab (patch) | |
tree | 8e6d9bdc828bc93436ee7a9c776081e1e064596d /libs | |
parent | ad829239d674c0dd288acc267cc39a317dd1d723 (diff) |
fix jack session filename (colons are invalid)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_state.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 9a82192175..49a0eed559 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -694,7 +694,7 @@ Session::remove_state (string snapshot_name) void Session::jack_session_event (jack_session_event_t * event) { - char timebuf[128]; + char timebuf[128], *tmp; time_t n; struct tm local_time; @@ -702,6 +702,8 @@ Session::jack_session_event (jack_session_event_t * event) localtime_r (&n, &local_time); strftime (timebuf, sizeof(timebuf), "JS_%FT%T", &local_time); + while ((tmp = strchr(timebuf, ':'))) { *tmp = '.'; } + if (event->type == JackSessionSaveTemplate) { if (save_template( timebuf )) { |