Mercurial > pidgin.yaz
diff plugins/log_reader.c @ 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 | fcde3faa1f57 |
children | ef5287de40b5 |
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);