mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-10 10:10:02 -04:00
When writing chunk to file or read it back from file, open file with O_BINARY flag. Otherwise on win32 for example line endings (\n) are converted (\r\n) and with real binary data this screws up things. Thanks to Oleg Sharonov for pointing this out. Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>