diff --git a/dbus/controller_iface_patchbay.c b/dbus/controller_iface_patchbay.c index ed477d7d..5acee604 100644 --- a/dbus/controller_iface_patchbay.c +++ b/dbus/controller_iface_patchbay.c @@ -323,7 +323,7 @@ jack_controller_patchbay_find_client( list_for_each(node_ptr, &patchbay_ptr->graph.clients) { client_ptr = list_entry(node_ptr, struct jack_graph_client, siblings); - if (strncmp(client_ptr->name, client_name, client_name_len) == 0) + if (strlen(client_ptr->name) == client_name_len && strncmp(client_ptr->name, client_name, client_name_len) == 0) { return client_ptr; }