pidgin: cecef4c1: Use g_fopen() instead of fopen() in a fe...

datallah at pidgin.im datallah at pidgin.im
Wed Oct 6 22:05:42 EDT 2010


----------------------------------------------------------------------
Revision: cecef4c1a921cb00fb6f4a4d96a5352c86369718
Parent:   605a2b4d3ebaa1fad8301aa4a151380dd06bc0a9
Author:   datallah at pidgin.im
Date:     10/06/10 22:02:15
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/cecef4c1a921cb00fb6f4a4d96a5352c86369718

Changelog: 

Use g_fopen() instead of fopen() in a few places that snuck in.

Changes against parent 605a2b4d3ebaa1fad8301aa4a151380dd06bc0a9

  patched  libpurple/protocols/oscar/oft.c
  patched  libpurple/protocols/qq/file_trans.c

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oft.c	de45dfdd8f7dff08bf338c0fc958e0b97bbdf965
+++ libpurple/protocols/oscar/oft.c	db359a6d029fbd11a74eb0e68bfb1c0732ce6514
@@ -207,7 +207,7 @@ peer_oft_checksum_file(PeerConnection *c
 	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)
 	{
============================================================
--- libpurple/protocols/qq/file_trans.c	fc8f019dfef8b322792c89c323b77cadefcf9c68
+++ libpurple/protocols/qq/file_trans.c	22a64cacba86c79804a897042a76984d22c0bfae
@@ -84,7 +84,7 @@ static void _fill_file_md5(const gchar *
 	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 gcha
 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;
 	}


More information about the Commits mailing list