jackdbus: fix client lookup
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4054 0c269be4-1314-0410-8aa9-9f06e86f4224
This commit is contained in:
parent
806b01f36e
commit
6ce74b1443
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue