mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
pipewire: snprintf always 0 terminates the string
This commit is contained in:
parent
8c334fa3ab
commit
20b8426013
1 changed files with 0 additions and 1 deletions
|
|
@ -595,7 +595,6 @@ const char *pw_get_client_name(void)
|
||||||
else {
|
else {
|
||||||
if (snprintf(cname, sizeof(cname), "pipewire-pid-%zd", (size_t) getpid()) < 0)
|
if (snprintf(cname, sizeof(cname), "pipewire-pid-%zd", (size_t) getpid()) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
cname[255] = 0;
|
|
||||||
return cname;
|
return cname;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue