diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-07-26 13:03:54 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-07-26 13:03:54 +0000 |
commit | ff9745b2228bfb780f5d5d553a8de61a7271062d (patch) | |
tree | d189fb6cf71d6100331821f35249ba12bfb0f924 /hidd | |
parent | 86d19dcfa04879c863a1248851cd7854b68242cb (diff) |
Make use of create_name()
Diffstat (limited to 'hidd')
-rw-r--r-- | hidd/sdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |