mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
module-rtp-sap: fix strncpy bounds
This commit is contained in:
parent
9a0499b64d
commit
44f1462711
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ static int make_unix_socket(char *path, char *client_path) {
|
|||
|
||||
spa_zero(client_addr);
|
||||
client_addr.sun_family = AF_UNIX;
|
||||
strncpy(client_addr.sun_path, client_path, strlen(client_path));
|
||||
strncpy(client_addr.sun_path, client_path, strlen(client_addr.sun_path));
|
||||
|
||||
if (bind(fd, (struct sockaddr *)&client_addr, sizeof(client_addr)) < 0) {
|
||||
pw_log_warn("Failed to bind PTP management socket");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue