From 5affbe4cefebca18ee901a32a2faeaee914206c9 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 24 Sep 2020 23:16:27 -0700 Subject: [PATCH] Mixer: Fix osc/midi by-number mode control for strips with names containing punctuation and spaces. --- mixer/src/Mixer.C | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mixer/src/Mixer.C b/mixer/src/Mixer.C index 131e0a0..1f246e7 100644 --- a/mixer/src/Mixer.C +++ b/mixer/src/Mixer.C @@ -621,8 +621,14 @@ Mixer::osc_strip_by_number ( const char *path, const char *types, lo_arg **argv, } char *new_path; + + char *stripname = escape_url( o->name() ); - asprintf( &new_path, "%s/strip/%s/%s", client_name, o->name(), rem ); + asprintf( &new_path, "%s/strip/%s/%s", client_name, stripname, rem ); + + free( stripname ); + + /* DMESSAGE( "Forwarding by-number OSC path: %s === %s", path, new_path ); */ free( rem );