diff src/ft.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 1a97d5e88d12
children f2e86683cafc
line wrap: on
line diff
--- a/src/ft.c	Fri Feb 11 03:51:26 2005 +0000
+++ b/src/ft.c	Fri Feb 11 05:10:40 2005 +0000
@@ -171,7 +171,7 @@
 
 	xfer = (GaimXfer *)user_data;
 
-	if (stat(filename, &st) != 0) {
+	if (g_stat(filename, &st) != 0) {
 		/* File not found. */
 		if (gaim_xfer_get_type(xfer) == GAIM_XFER_RECEIVE) {
 			gaim_xfer_request_accepted(xfer, filename);
@@ -370,7 +370,7 @@
 			return;
 		}
 
-		if (stat(filename, &st) == -1) {
+		if (g_stat(filename, &st) == -1) {
 		  	gaim_xfer_show_file_error(xfer, filename);
 			gaim_xfer_unref(xfer);
 			return;
@@ -792,7 +792,7 @@
 {
 	GaimXferType type = gaim_xfer_get_type(xfer);
 
-	xfer->dest_fp = fopen(gaim_xfer_get_local_filename(xfer),
+	xfer->dest_fp = g_fopen(gaim_xfer_get_local_filename(xfer),
 						  type == GAIM_XFER_RECEIVE ? "wb" : "rb");
 
 	if (xfer->dest_fp == NULL) {