diff libpurple/protocols/qq/file_trans.c @ 30589: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 351d07aefb09
children 4deef745de87
line wrap: on
line diff
--- 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;
 	}