diff src/protocols/msn/slplink.c @ 10589:0f7452b1f777

[gaim-migrate @ 11994] Use GLib 2.6's gstdio functions. This should fix gaim not liking non-ascii filenames in win32. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 11 Feb 2005 05:10:40 +0000
parents bcfea6c3d5c9
children f52ab405f1ab
line wrap: on
line diff
--- a/src/protocols/msn/slplink.c	Fri Feb 11 03:51:26 2005 +0000
+++ b/src/protocols/msn/slplink.c	Fri Feb 11 05:10:40 2005 +0000
@@ -46,7 +46,7 @@
 	dir = send ? "send" : "recv";
 	c = send ? m_sc++ : m_rc++;
 	tmp = g_strdup_printf("%s/msntest/%s/%03d", g_get_home_dir(), dir, c);
-	tf = fopen(tmp, "wb");
+	tf = g_fopen(tmp, "wb");
 	pload = msn_message_gen_payload(msg, &pload_size);
 	fwrite(pload, 1, pload_size, tf);
 	fclose(tf);
@@ -502,7 +502,7 @@
 					if (xfer != NULL)
 					{
 						slpmsg->fp =
-							fopen(gaim_xfer_get_local_filename(slpmsg->slpcall->xfer),
+							g_fopen(gaim_xfer_get_local_filename(slpmsg->slpcall->xfer),
 								  "wb");
 					}
 				}
@@ -636,7 +636,7 @@
 	glong uni_len = 0;
 	gsize len;
 
-	if (stat(file_path, &st) == 0)
+	if (g_stat(file_path, &st) == 0)
 		size = st.st_size;
 
 	if(!file_name) {