diff options
| author | Marko Kreen | 2011-02-15 06:52:24 +0000 |
|---|---|---|
| committer | Marko Kreen | 2011-02-15 07:14:03 +0000 |
| commit | 77d3d66a90b4c82dc516f062d063a9c1e4650f55 (patch) | |
| tree | ad42776415c87551aa5ac9103d9045f343564f84 /test | |
| parent | 375e3f52e8636376135d43c372fbf4d1fa0a6662 (diff) | |
test_fileutil: use wb to write file
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_fileutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_fileutil.c b/test/test_fileutil.c index b637efc..ef1a726 100644 --- a/test/test_fileutil.c +++ b/test/test_fileutil.c @@ -24,7 +24,7 @@ static const char filename[] = "test_fileutil.tmp"; static bool createfile(void) { - FILE *f = fopen(filename, "w+"); + FILE *f = fopen(filename, "wb+"); if (!f) return false; fwrite(fdata, 1, strlen(fdata), f); fclose(f); |
