changeset 25219:e958c6335136

merge of '1f1c4d53b190a6818acec7b4a5469c4a4db37759' and '8da5e7cc30ef10db3b7f61496928b6dccfdf34d4'
author Marcus Lundblad <ml@update.uu.se>
date Mon, 29 Sep 2008 17:29:02 +0000
parents f50bf4ce7840 (diff) 62c58a297fd2 (current diff)
children 48cbd239076c
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/si.c	Sun Sep 28 11:08:21 2008 +0000
+++ b/libpurple/protocols/jabber/si.c	Mon Sep 29 17:29:02 2008 +0000
@@ -1015,7 +1015,7 @@
 			jabber_si_xfer_ibb_error_cb);
 		
 		/* open the file to write to */
-		jsx->fp = g_fopen(purple_xfer_get_local_filename(xfer), "w");
+		jsx->fp = g_fopen(purple_xfer_get_local_filename(xfer), "wb");
 		
 		jsx->ibb_session = sess;
 		
@@ -1083,7 +1083,7 @@
 	purple_xfer_start(xfer, 0, NULL, 0);
 	purple_xfer_set_bytes_sent(xfer, 0);
 	purple_xfer_update_progress(xfer);
-	jsx->fp = g_fopen(purple_xfer_get_local_filename(xfer), "r");
+	jsx->fp = g_fopen(purple_xfer_get_local_filename(xfer), "rb");
 	jabber_si_xfer_ibb_send_data(sess);
 }