diff options
author | Berke Viktor <bviktor@hexchat.org> | 2013-05-04 18:21:48 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2013-05-04 18:21:48 +0200 |
commit | fb01d4e9ab9739e11499538d85e8932fb97a2c57 (patch) | |
tree | 46d0d3e258b2c7b929dce76ab43723e2b79b3c0a /src/common/dbus | |
parent | b2317d88007270f8b49d3282face90a7f2716e7d (diff) |
Replace g_strdup_printf with g_build_filename where possible
Diffstat (limited to 'src/common/dbus')
-rw-r--r-- | src/common/dbus/dbus-plugin.c | 2 |
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); |