mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
Only use string literals as format
Fixes -Wformat-security error.
This commit is contained in:
parent
bc2f53a31c
commit
e27ec1a203
2 changed files with 4 additions and 3 deletions
|
|
@ -408,7 +408,8 @@ handle_create_client_node (PinosDaemon1 *interface,
|
|||
target_node = pinos_properties_get (props, "pinos.target.node");
|
||||
if (target_node) {
|
||||
if (strncmp (target_node, "/org/pinos/node_", strlen ("/org/pinos/node_")) == 0) {
|
||||
pinos_properties_setf (props, "pinos.target.node", target_node + strlen ("/org/pinos/node_"));
|
||||
pinos_properties_setf (props, "pinos.target.node", "%s",
|
||||
target_node + strlen ("/org/pinos/node_"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue