summaryrefslogtreecommitdiffstats
path: root/hidd
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:03:54 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:03:54 +0000
commitff9745b2228bfb780f5d5d553a8de61a7271062d (patch)
treed189fb6cf71d6100331821f35249ba12bfb0f924 /hidd
parent86d19dcfa04879c863a1248851cd7854b68242cb (diff)
Make use of create_name()
Diffstat (limited to 'hidd')
-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);