summary refs log tree commit diff stats
path: root/src/common/server.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/server.c
parentb2317d88007270f8b49d3282face90a7f2716e7d (diff)
Replace g_strdup_printf with g_build_filename where possible
Diffstat (limited to 'src/common/server.c')
-rw-r--r--src/common/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/server.c b/src/common/server.c
index 1f4f626e..26d9a7cb 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -1713,7 +1713,7 @@ server_connect (server *serv, char *hostname, int port, int no_login)
 		else
 		{
 			/* if that doesn't exist, try <config>/certs/client.pem */
-			cert_file = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "certs" G_DIR_SEPARATOR_S "client.pem", get_xdir ());
+			cert_file = g_build_filename (get_xdir (), "certs", "client.pem", NULL);
 			if (SSL_CTX_use_certificate_file (ctx, cert_file, SSL_FILETYPE_PEM) == 1)
 				SSL_CTX_use_PrivateKey_file (ctx, cert_file, SSL_FILETYPE_PEM);
 		}