mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
jack: Include NULL in return value of jack_client_name_size()
This fixes an assertion failure in PortAudio's JACK backend when the monitor client name is longer than than JACK_CLIENT_NAME_SIZE.
This commit is contained in:
parent
1ea1d525c1
commit
7884ff82db
1 changed files with 3 additions and 2 deletions
|
|
@ -3584,8 +3584,9 @@ char *jack_get_internal_client_name (jack_client_t *client,
|
|||
SPA_EXPORT
|
||||
int jack_client_name_size (void)
|
||||
{
|
||||
pw_log_trace("%d", JACK_CLIENT_NAME_SIZE);
|
||||
return JACK_CLIENT_NAME_SIZE;
|
||||
/* The JACK API specifies that this value includes the final NULL character. */
|
||||
pw_log_trace("%d", JACK_CLIENT_NAME_SIZE+1);
|
||||
return JACK_CLIENT_NAME_SIZE+1;
|
||||
}
|
||||
|
||||
SPA_EXPORT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue