projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
375e3f5
)
test_fileutil: use wb to write file
author
Marko Kreen
<markokr@gmail.com>
Tue, 15 Feb 2011 06:52:24 +0000
(08:52 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Tue, 15 Feb 2011 07:14:03 +0000
(09:14 +0200)
test/test_fileutil.c
patch
|
blob
|
blame
|
history
diff --git
a/test/test_fileutil.c
b/test/test_fileutil.c
index b637efcd2e04fe3681e634d44dd2c18d121c7c91..ef1a726597572c360293671044560d8cdde8c6bd 100644
(file)
--- 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, "w
b
+");
if (!f) return false;
fwrite(fdata, 1, strlen(fdata), f);
fclose(f);