summaryrefslogtreecommitdiffstats
path: root/tests/arsymtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arsymtest.c')
-rw-r--r--tests/arsymtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/arsymtest.c b/tests/arsymtest.c
index c724863f..ca216eb1 100644
--- a/tests/arsymtest.c
+++ b/tests/arsymtest.c
@@ -37,7 +37,7 @@ main (int argc, char *argv[])
exit (1);
/* Open the archive. */
- fd = open (argv[1], O_RDONLY);
+ fd = open (argv[1], O_RDONLY | O_BINARY);
if (fd == -1)
{
printf ("Cannot open input file: %m");
@@ -45,7 +45,7 @@ main (int argc, char *argv[])
}
/* Open the output file. */
- fp = fopen (argv[2], "w");
+ fp = fopen (argv[2], "wb");
if (fp == NULL)
{
printf ("Cannot open output file: %m");