aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serd_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-04 14:06:48 -0500
committerDavid Robillard <d@drobilla.net>2018-01-04 19:34:53 -0500
commitb78b4387f2afe80ffc1e239cc75ca1774a51043d (patch)
tree1c0a192312eb52287de5edfa605308997e8a6679 /tests/serd_test.c
parent254db2b87025e06693e3f8b17e6c7a5363c2d416 (diff)
downloadserd-b78b4387f2afe80ffc1e239cc75ca1774a51043d.tar.gz
serd-b78b4387f2afe80ffc1e239cc75ca1774a51043d.tar.bz2
serd-b78b4387f2afe80ffc1e239cc75ca1774a51043d.zip
Open files in binary mode to preserve line endings on Windows
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r--tests/serd_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 33f78fcd..b80c8b82 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -484,7 +484,7 @@ main(void)
// Test SerdReader and SerdWriter
const char* path = "serd_test.ttl";
- FILE* fd = fopen(path, "w");
+ FILE* fd = fopen(path, "wb");
if (!fd) {
FAILF("Failed to open file %s\n", path);
}