[gaim-migrate @ 15520]

Tue, 07 Feb 2006 09:50:55 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Tue, 07 Feb 2006 09:50:55 +0000
changeset 13158
3b4295931fd6
parent 13157
ef4da8c7626a
child 13159
0578ba9cb43d

[gaim-migrate @ 15520]
We're supposed to use g_fopen everywhere, right?

plugins/log_reader.c file | annotate | diff | comparison | revisions
src/protocols/sametime/sametime.c file | annotate | diff | comparison | revisions
--- 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();

mercurial