From fb01d4e9ab9739e11499538d85e8932fb97a2c57 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sat, 4 May 2013 18:21:48 +0200 Subject: Replace g_strdup_printf with g_build_filename where possible --- src/common/dbus/dbus-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/dbus/dbus-plugin.c') 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); -- cgit 1.4.1