2009-01-17 [colin] 3.7.0cvs37
[claws.git] / src / plugins / bogofilter / bogofilter.c
index d074b3a90991fc523ccb5165674e16814acf0dc4..5a293af88ba779bd185133c67c32d80b330076c7 100644 (file)
@@ -272,8 +272,8 @@ static void bogofilter_do_filter(BogoFilterData *data)
                                            FOLDER_TYPE(msginfo->folder->folder) == F_MH &&
                                            config.insert_header) {
                                                gchar *tmpfile = get_tmp_file();
-                                               FILE *input = fopen(file, "r");
-                                               FILE *output = fopen(tmpfile, "w");
+                                               FILE *input = g_fopen(file, "r");
+                                               FILE *output = g_fopen(tmpfile, "w");
                                                if (strstr(parts[2], "\n"))
                                                        *(strstr(parts[2], "\n")) = '\0';
                                                if (input && !output)