[Freeswitch-svn] [commit] r10459 - freeswitch/trunk/src/mod/applications/mod_fsv

FreeSWITCH SVN anthm at freeswitch.org
Wed Nov 19 09:08:47 PST 2008


Author: anthm
Date: Wed Nov 19 12:08:46 2008
New Revision: 10459

Log:
close MODAPP-169

Modified:
   freeswitch/trunk/src/mod/applications/mod_fsv/mod_fsv.c

Modified: freeswitch/trunk/src/mod/applications/mod_fsv/mod_fsv.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_fsv/mod_fsv.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_fsv/mod_fsv.c	Wed Nov 19 12:08:46 2008
@@ -110,7 +110,7 @@
 
 	switch_channel_answer(channel);
 
-	if ((fd = open((char *) data, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) < 0) {
+	if ((fd = open((char *) data, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR | S_IWUSR)) < 0) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Error opening file %s\n", (char *) data);
 		return;
 	}



More information about the Freeswitch-svn mailing list