summaryrefslogtreecommitdiffstats
path: root/tests/showptable.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/showptable.c')
-rw-r--r--tests/showptable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/showptable.c b/tests/showptable.c
index a794b0e8..5586c5f3 100644
--- a/tests/showptable.c
+++ b/tests/showptable.c
@@ -38,7 +38,7 @@ main (int argc, char *argv[])
exit (1);
}
- fd = open (argv[1], O_RDONLY);
+ fd = open (argv[1], O_RDONLY | O_BINARY);
if (fd == -1)
{
printf ("cannot open \"%s\": %s\n", argv[1], strerror (errno));