summary refs log tree commit diff stats
path: root/src/common/servlist.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-05-04 18:21:48 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-05-04 18:21:48 +0200
commitfb01d4e9ab9739e11499538d85e8932fb97a2c57 (patch)
tree46d0d3e258b2c7b929dce76ab43723e2b79b3c0a /src/common/servlist.c
parentb2317d88007270f8b49d3282face90a7f2716e7d (diff)
Replace g_strdup_printf with g_build_filename where possible
Diffstat (limited to 'src/common/servlist.c')
-rw-r--r--src/common/servlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/servlist.c b/src/common/servlist.c
index 365b3c17..860432d5 100644
--- a/src/common/servlist.c
+++ b/src/common/servlist.c
@@ -1214,7 +1214,7 @@ servlist_save (void)
 #ifndef WIN32
 	int first = FALSE;
 
-	buf = g_strdup_printf ("%s/servlist.conf", get_xdir ());
+	buf = g_build_filename (get_xdir (), "servlist.conf", NULL);
 	if (g_access (buf, F_OK) != 0)
 		first = TRUE;
 #endif