mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -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_"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -412,7 +412,7 @@ spa_debug_format (const SpaFormat *format, const SpaTypeMap *map)
|
|||
break;
|
||||
}
|
||||
|
||||
fprintf (stderr, ssep);
|
||||
fprintf (stderr, "%s", ssep);
|
||||
|
||||
i = 0;
|
||||
SPA_POD_PROP_ALTERNATIVE_FOREACH (&prop->body, prop->pod.size, alt) {
|
||||
|
|
@ -421,7 +421,7 @@ spa_debug_format (const SpaFormat *format, const SpaTypeMap *map)
|
|||
print_format_value (map, prop->body.value.size, prop->body.value.type, alt);
|
||||
i++;
|
||||
}
|
||||
fprintf (stderr, esep);
|
||||
fprintf (stderr, "%s", esep);
|
||||
}
|
||||
fprintf (stderr, "\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue