mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-19 06:46:26 -04:00
core: use %u format specifier for uint32_t IDs
The object, node, client, factory, module, and link IDs are all uint32_t values but were being formatted with %d. This would produce incorrect negative values if an ID ever exceeded INT_MAX
This commit is contained in:
parent
35cbd2e56a
commit
b4457b871f
26 changed files with 51 additions and 51 deletions
|
|
@ -108,7 +108,7 @@ struct pw_impl_device *pw_client_device_new(struct pw_resource *resource,
|
|||
if (properties == NULL)
|
||||
return NULL;
|
||||
|
||||
pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
|
||||
pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%u",
|
||||
pw_impl_client_get_info(client)->id);
|
||||
|
||||
device = pw_context_create_device(context, properties, sizeof(struct impl));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue