diff src/protocols/msn/slplink.c @ 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 ab6636c5a136
children 7a00289f2ef1
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");
 				}
 			}
 		}