summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/dbus-adapter.c2
-rw-r--r--hcid/dbus-sdp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index 2d9b32b4..01cd3886 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -1997,7 +1997,7 @@ static DBusHandlerResult handle_dev_list_bondings_req(DBusConnection *conn, DBus
if (!dbus_message_has_signature(msg, DBUS_TYPE_INVALID_AS_STRING))
return error_invalid_arguments(conn, msg);
- snprintf(filename, PATH_MAX, "%s/%s/linkkeys", STORAGEDIR, dbus_data->address);
+ create_name(filename, PATH_MAX, STORAGEDIR, dbus_data->address, "linkkeys");
reply = dbus_message_new_method_return(msg);
diff --git a/hcid/dbus-sdp.c b/hcid/dbus-sdp.c
index 72ae36c2..2cfd687c 100644
--- a/hcid/dbus-sdp.c
+++ b/hcid/dbus-sdp.c
@@ -852,7 +852,7 @@ static DBusHandlerResult get_identifiers(DBusConnection *conn,
return error_service_search_in_progress(conn, msg);
/* check if it is a unknown address */
- snprintf(filename, PATH_MAX, "%s/%s/lastseen", STORAGEDIR, dbus_data->address);
+ create_name(filename, PATH_MAX, STORAGEDIR, dbus_data->address, "lastseen");
str = textfile_get(filename, dst);
if (!str)