]> git.armaanb.net Git - chorizo.git/blobdiff - extensions/we_adblock.c
draft
[chorizo.git] / extensions / we_adblock.c
index 50a756040fafc36ccfc80b800ad2be568bada4a6..37fa3b732f38f7cb0541b9bde09612ab983c839c 100644 (file)
@@ -12,7 +12,7 @@ adblock_load(void) {
     GIOChannel *channel = NULL;
     gchar *path = NULL, *buf = NULL;
 
-    path = g_build_filename(g_get_user_config_dir(), __NAME__, "adblock", NULL);
+    path = g_build_filename(g_get_user_config_dir(), "chorizo", "adblock", NULL);
     channel = g_io_channel_new_file(path, "r", &err);
     if (channel != NULL) {
         while (g_io_channel_read_line(channel, &buf, NULL, NULL, NULL) ==
@@ -22,7 +22,7 @@ adblock_load(void) {
                 re = g_regex_new(buf, G_REGEX_CASELESS | G_REGEX_OPTIMIZE,
                                  G_REGEX_MATCH_PARTIAL, &err);
                 if (err != NULL) {
-                    fprintf(stderr, __NAME__ ": Could not compile regex: %s\n",
+                    fprintf(stderr, "chorizo: Could not compile regex: %s\n",
                             buf);
                     g_error_free(err);
                     err = NULL;