]> git.armaanb.net Git - chorizo.git/commitdiff
Use g_build_filename()
authorPeter Hofmann <scm@uninformativ.de>
Sat, 14 Jun 2014 17:12:20 +0000 (19:12 +0200)
committerPeter Hofmann <scm@uninformativ.de>
Sat, 14 Jun 2014 17:12:20 +0000 (19:12 +0200)
zea.c

diff --git a/zea.c b/zea.c
index 79e14ccce2ad9eb32ec76fbbc4d4f38dff53a1b1..679979df0c69f49d1f7a4633fc68b14b1e07db39 100644 (file)
--- a/zea.c
+++ b/zea.c
@@ -352,7 +352,7 @@ zea_load_adblock(void)
        gchar *buf = NULL;
        gsize length, term;
 
-       path = g_strdup_printf("%s/zea/adblock.black", g_get_user_config_dir());
+       path = g_build_filename(g_get_user_config_dir(), "zea", "adblock.black", NULL);
        channel = g_io_channel_new_file(path, "r", &err);
        if (channel != NULL)
        {