diff options
author | Robin Gareus <robin@gareus.org> | 2014-10-04 18:01:43 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-10-04 18:01:43 +0200 |
commit | adefca9dd25ca88d005e8008da34e7a2401d88c7 (patch) | |
tree | 3b9f954626208acba111d0ec61e287c21fcb4794 /libs/ardour/vst_info_file.cc | |
parent | 29d89f012826cd6b19040c8511dec39cca7fbd01 (diff) |
use single newline char in VST info files.
windows writes \r\n to non-binary files and the VST
info parser does not handle that case.
Diffstat (limited to 'libs/ardour/vst_info_file.cc')
-rw-r--r-- | libs/ardour/vst_info_file.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc index da49d1b8eb..9ca163588e 100644 --- a/libs/ardour/vst_info_file.cc +++ b/libs/ardour/vst_info_file.cc @@ -374,10 +374,10 @@ static FILE * vstfx_blacklist_file (const char *dllpath) { FILE *f; - if ((f = fopen (vstfx_blacklist_path (dllpath, 0).c_str(), "w"))) { + if ((f = fopen (vstfx_blacklist_path (dllpath, 0).c_str(), "wb"))) { return f; } - return fopen (vstfx_blacklist_path (dllpath, 1).c_str(), "w"); + return fopen (vstfx_blacklist_path (dllpath, 1).c_str(), "wb"); } /** mark plugin as blacklisted */ @@ -477,7 +477,7 @@ vstfx_infofile_create (const char* dllpath, int personal) } string const path = vstfx_infofile_path (dllpath, personal); - return fopen (path.c_str(), "w"); + return fopen (path.c_str(), "wb"); } /** newly created cache file for given plugin |