summaryrefslogtreecommitdiffstats
path: root/hidd/sdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'hidd/sdp.c')
-rw-r--r--hidd/sdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hidd/sdp.c b/hidd/sdp.c
index 2eef3889..2c010f79 100644
--- a/hidd/sdp.c
+++ b/hidd/sdp.c
@@ -76,7 +76,7 @@ static int store_device_info(const bdaddr_t *src, const bdaddr_t *dst, struct hi
int i, size;
ba2str(src, addr);
- snprintf(filename, PATH_MAX, "%s/%s/hidd", STORAGEDIR, addr);
+ create_name(filename, PATH_MAX, STORAGEDIR, addr, "hidd");
size = 15 + 3 + 3 + 5 + (req->rd_size * 2) + 1 + 9 + strlen(req->name) + 2;
str = malloc(size);
@@ -117,7 +117,7 @@ int get_stored_device_info(const bdaddr_t *src, const bdaddr_t *dst, struct hidp
memset(desc, 0, 4096);
ba2str(src, addr);
- snprintf(filename, PATH_MAX, "%s/%s/hidd", STORAGEDIR, addr);
+ create_name(filename, PATH_MAX, STORAGEDIR, addr, "hidd");
ba2str(dst, addr);
str = textfile_get(filename, addr);