From 69367c0266b6f89ea085ac81eda51fc4e18e50c8 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 14 Jan 2007 23:27:42 +0000 Subject: Minor cleanup and a fix --- hcid/dbus-service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index 40ab706a..a6658dd7 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -700,14 +700,14 @@ int init_services(const char *path) d = opendir(path); if (!d) { - error("Unable to open service dir %s: %s", strerror(errno)); + error("Unable to open service dir %s: %s", path, strerror(errno)); return -1; } while ((e = readdir(d)) != NULL) { char full_path[PATH_MAX]; struct service *service; - size_t len= strlen(e->d_name); + size_t len = strlen(e->d_name); if (len < (strlen(SERVICE_SUFFIX) + 1)) continue; -- cgit