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:
Wim Taymans 2026-05-05 19:01:39 +02:00
parent 8907d0860b
commit aa29fefbd2

View file

@ -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);