changeset 31024:de168bbf1e43

Use g_fopen() instead of fopen() in a few places that snuck in.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 07 Oct 2010 02:02:15 +0000
parents f5ad042a7790
children 485eaf544bb0
files libpurple/protocols/oscar/oft.c libpurple/protocols/qq/file_trans.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oft.c	Wed Oct 06 02:36:00 2010 +0000
+++ b/libpurple/protocols/oscar/oft.c	Thu Oct 07 02:02:15 2010 +0000
@@ -207,7 +207,7 @@
 	checksum_data->callback = callback;
 	checksum_data->size = size;
 	checksum_data->checksum = 0xffff0000;
-	checksum_data->file = fopen(purple_xfer_get_local_filename(xfer), "rb");
+	checksum_data->file = g_fopen(purple_xfer_get_local_filename(xfer), "rb");
 
 	if (checksum_data->file == NULL)
 	{
--- a/libpurple/protocols/qq/file_trans.c	Wed Oct 06 02:36:00 2010 +0000
+++ b/libpurple/protocols/qq/file_trans.c	Thu Oct 07 02:02:15 2010 +0000
@@ -84,7 +84,7 @@
 	if (filelen > QQ_MAX_FILE_MD5_LENGTH)
 		filelen = QQ_MAX_FILE_MD5_LENGTH;
 
-	fp = fopen(filename, "rb");
+	fp = g_fopen(filename, "rb");
 	g_return_if_fail(fp != NULL);
 
 	buffer = g_newa(guint8, filelen);
@@ -202,7 +202,7 @@
 static int _qq_xfer_open_file(const gchar *filename, const gchar *method, PurpleXfer *xfer)
 {
 	ft_info *info = xfer->data;
-	info->dest_fp = fopen(purple_xfer_get_local_filename(xfer), method);
+	info->dest_fp = g_fopen(purple_xfer_get_local_filename(xfer), method);
 	if (info->dest_fp == NULL) {
 		return -1;
 	}