changeset 9219:ec2a51abcc71

[gaim-migrate @ 10015] fopen files with "b" because Windows sucks. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 06 Jun 2004 17:43:37 +0000
parents 08e7ccb4610d
children f0488214826f
files src/protocols/msn/slplink.c src/protocols/msn/slpmsg.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/slplink.c	Sun Jun 06 17:28:52 2004 +0000
+++ b/src/protocols/msn/slplink.c	Sun Jun 06 17:43:37 2004 +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, "w");
+	tf = fopen(tmp, "wb");
 	pload = msn_message_gen_payload(msg, &pload_size);
 	fwrite(pload, 1, pload_size, tf);
 	fclose(tf);
@@ -474,7 +474,7 @@
 				if (xfer != NULL)
 				{
 					slpmsg->fp =
-						fopen(gaim_xfer_get_local_filename(slpmsg->slpcall->xfer), "w");
+						fopen(gaim_xfer_get_local_filename(slpmsg->slpcall->xfer), "wb");
 				}
 			}
 		}
--- a/src/protocols/msn/slpmsg.c	Sun Jun 06 17:28:52 2004 +0000
+++ b/src/protocols/msn/slpmsg.c	Sun Jun 06 17:43:37 2004 +0000
@@ -95,7 +95,7 @@
 {
 	struct stat st;
 
-	slpmsg->fp = fopen(file_name, "r");
+	slpmsg->fp = fopen(file_name, "rb");
 
 	if (stat(file_name, &st) == 0)
 		slpmsg->size = st.st_size;