summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2019-09-26 17:26:23 +0200
committerWim Taymans <wtaymans@redhat.com>2019-09-26 17:26:23 +0200
commit5183e1d4b4c54ad2a464ad58c95c489f93b4280d (patch)
tree42b14315c95320e31c7183032ae1cca1d27bf586
parent56cf3196a2569113fd018dd4a37e5e33c37c3cb0 (diff)
bluez-monitor: fix usage of pw_properties_setf without a format string
Otherwise compilation will fail with certain -Wformat-security flags Add the flag to the warnings.
-rw-r--r--meson.build1
-rw-r--r--src/examples/bluez-monitor.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index aa60db35..1db42621 100644
--- a/meson.build
+++ b/meson.build
@@ -46,6 +46,7 @@ if cc.get_id() == 'gcc'
'-Wsign-compare',
'-Wimplicit-fallthrough',
'-Wpointer-arith',
+ '-Wformat-security',
# '-DFASTPATH',
language : 'c')
endif
diff --git a/src/examples/bluez-monitor.c b/src/examples/bluez-monitor.c
index 74771ae3..0c273e86 100644
--- a/src/examples/bluez-monitor.c
+++ b/src/examples/bluez-monitor.c
@@ -123,7 +123,7 @@ static struct bluez5_node *bluez5_create_node(struct bluez5_object *obj, uint32_
pw_properties_setf(node->props, PW_KEY_NODE_NAME, "%s.%s", info->factory_name, str);
pw_properties_set(node->props, PW_KEY_NODE_DESCRIPTION, str);
- pw_properties_setf(node->props, "factory.name", info->factory_name);
+ pw_properties_set(node->props, "factory.name", info->factory_name);
node->monitor = monitor;
node->object = obj;