mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pulse-server: module-zeroconf-publish: remove static
`sysname` need not be static since `avahi_string_list_add_pair()` creates a copy, and no other parts of the code have reference to `sysname` that would require static lifetime. Furthermore, do not hardcode the size of the array.
This commit is contained in:
parent
324894e605
commit
9994a763d6
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ static AvahiStringList* txt_record_server_data(struct pw_core_info *info, AvahiS
|
|||
{
|
||||
const char *t;
|
||||
struct utsname u;
|
||||
static char sysname[256];
|
||||
char sysname[sizeof(u.sysname) + sizeof(u.machine) + sizeof(u.release)];
|
||||
|
||||
spa_assert(info);
|
||||
spa_assert(uname(&u) >= 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue