mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-06 06:46:29 -04:00
vban: limit the stream_name
The stream_name from the network is not 0 terminated so limit the string to the max size.
This commit is contained in:
parent
8907d0860b
commit
aa29fefbd2
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,7 @@ do_setup_stream(struct spa_loop *loop,
|
|||
|
||||
pw_net_get_ip(&s->sa, addr, sizeof(addr), NULL, &port);
|
||||
|
||||
pw_properties_setf(props, "sess.name", "%s", s->header.stream_name);
|
||||
pw_properties_setf(props, "sess.name", "%.*s", VBAN_STREAM_NAME_SIZE, s->header.stream_name);
|
||||
pw_properties_setf(props, "vban.ip", "%s", addr);
|
||||
pw_properties_setf(props, "vban.port", "%u", port);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue