]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
close MODAPP-169
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 19 Nov 2008 17:08:46 +0000 (17:08 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 19 Nov 2008 17:08:46 +0000 (17:08 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10459 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_fsv/mod_fsv.c

index 868d1266d7ba4a2c64bf62bca8d1c35553d863e9..835c675916e75873ef05325fc326142c8827aafe 100644 (file)
@@ -110,7 +110,7 @@ SWITCH_STANDARD_APP(record_fsv_function)
 
        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;
        }