diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hciconfig.c | 2 | ||||
-rw-r--r-- | tools/hcitool.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 04f9a8be..53ffec89 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -734,7 +734,7 @@ static int get_link_key(const bdaddr_t *local, const bdaddr_t *peer, uint8_t *ke int i; ba2str(local, addr); - snprintf(filename, PATH_MAX, "%s/%s/linkkeys", STORAGEDIR, addr); + create_name(filename, PATH_MAX, STORAGEDIR, addr, "linkkeys"); ba2str(peer, addr); str = textfile_get(filename, addr); diff --git a/tools/hcitool.c b/tools/hcitool.c index f38fd1d0..ef33440f 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -281,7 +281,7 @@ static char *get_device_name(const bdaddr_t *local, const bdaddr_t *peer) char filename[PATH_MAX + 1], addr[18]; ba2str(local, addr); - snprintf(filename, PATH_MAX, "%s/%s/names", STORAGEDIR, addr); + create_name(filename, PATH_MAX, STORAGEDIR, addr, "names"); ba2str(peer, addr); return textfile_get(filename, addr); |