changeset 13157:3a97c65196d1

[gaim-migrate @ 15520] We're supposed to use g_fopen everywhere, right? committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 07 Feb 2006 09:50:55 +0000
parents 44188ee27d59
children eed97963252a
files plugins/log_reader.c src/protocols/sametime/sametime.c
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/log_reader.c	Tue Feb 07 09:50:06 2006 +0000
+++ b/plugins/log_reader.c	Tue Feb 07 09:50:55 2006 +0000
@@ -110,7 +110,7 @@
 							"Filename timestamp parsing error\n");
 				} else {
 					char *filename = g_build_filename(path, file, NULL);
-					FILE *handle = fopen(filename, "rb");
+					FILE *handle = g_fopen(filename, "rb");
 					char *contents;
 					char *contents2;
 					struct adium_logger_data *data;
@@ -175,7 +175,7 @@
 							"Filename timestamp parsing error\n");
 				} else {
 					char *filename = g_build_filename(path, file, NULL);
-					FILE *handle = fopen(filename, "rb");
+					FILE *handle = g_fopen(filename, "rb");
 					char *contents;
 					char *contents2;
 					struct adium_logger_data *data;
@@ -1295,7 +1295,7 @@
 
 	read = g_malloc(data->length + 2);
 
-	file = fopen(data->path, "rb");
+	file = g_fopen(data->path, "rb");
 	fseek(file, data->offset, SEEK_SET);
 	fread(read, data->length, 1, file);
 	fclose(file);
--- a/src/protocols/sametime/sametime.c	Tue Feb 07 09:50:06 2006 +0000
+++ b/src/protocols/sametime/sametime.c	Tue Feb 07 09:50:55 2006 +0000
@@ -5012,7 +5012,7 @@
 
   GString *str;
 
-  file = fopen(filename, "r");
+  file = g_fopen(filename, "r");
   g_return_if_fail(file != NULL);
 
   str = g_string_new(NULL);
@@ -5054,7 +5054,7 @@
   char *str;
   FILE *file;
 
-  file = fopen(filename, "w");
+  file = g_fopen(filename, "w");
   g_return_if_fail(file != NULL);
 
   l = mwSametimeList_new();