summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorTedd Ho-Jeong An <tedd.an@intel.com>2022-06-07 22:14:18 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-06-09 20:49:36 -0700
commit5ebc2b5a3e48dbe67a2d315979b096a1b4d1eb99 (patch)
tree1bd4c80bdc122bcae4972ffbc727ebc47e29c313 /src/device.c
parentab31e2f7e828df3d971cba6f12859edc69f149d5 (diff)
downloadbluez-5ebc2b5a3e48dbe67a2d315979b096a1b4d1eb99.tar.gz
device: Fix not deleting the folder after removing the device
This patch fixes the issue not deleting the device folder when the device is removed.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 0d7c62c9c..3da09578f 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4278,7 +4278,7 @@ static void delete_folder_tree(const char *dirname)
if (entry->d_type == DT_UNKNOWN)
entry->d_type = util_get_dt(dirname, entry->d_name);
- create_filename(filename, PATH_MAX, "%s/%s", dirname,
+ snprintf(filename, PATH_MAX, "%s/%s", dirname,
entry->d_name);
if (entry->d_type == DT_DIR)