summary refs log tree commit diff stats
path: root/src/common/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/dbus')
-rw-r--r--src/common/dbus/dbus-plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dbus/dbus-plugin.c b/src/common/dbus/dbus-plugin.c
index 2467c845..62b83bb1 100644
--- a/src/common/dbus/dbus-plugin.c
+++ b/src/common/dbus/dbus-plugin.c
@@ -373,7 +373,7 @@ remote_object_connect (RemoteObject *obj,
 		g_free (sender);
 		return TRUE;
 	}
-	path = g_strdup_printf (DBUS_OBJECT_PATH"/%d", count++);
+	path = g_build_filename (DBUS_OBJECT_PATH, count++, NULL);
 	remote_object = g_object_new (REMOTE_TYPE_OBJECT, NULL);
 	remote_object->dbus_path = path;
 	remote_object->filename = g_path_get_basename (filename);