mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04: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
|
|
@ -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