summaryrefslogtreecommitdiffstats
path: root/tests/debuglink.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/debuglink.c')
-rw-r--r--tests/debuglink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/debuglink.c b/tests/debuglink.c
index 935d1029..ea5bd238 100644
--- a/tests/debuglink.c
+++ b/tests/debuglink.c
@@ -40,7 +40,7 @@ main (int argc, char *argv[])
for (int i = 1; i < argc; i++)
{
const char *file = argv[i];
- int fd = open (file, O_RDONLY);
+ int fd = open (file, O_RDONLY | O_BINARY);
if (fd < 0)
error (EXIT_FAILURE, errno, "couldn't open file '%s'", file);