summaryrefslogtreecommitdiffstats
path: root/tools/hcitool.c
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 /tools/hcitool.c
parent86d19dcfa04879c863a1248851cd7854b68242cb (diff)
Make use of create_name()
Diffstat (limited to 'tools/hcitool.c')
-rw-r--r--tools/hcitool.c2
1 files changed, 1 insertions, 1 deletions
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);