diff options
Diffstat (limited to 'tests/zstrptr.c')
| -rw-r--r-- | tests/zstrptr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zstrptr.c b/tests/zstrptr.c index 6d8e19f7..8560dfdb 100644 --- a/tests/zstrptr.c +++ b/tests/zstrptr.c @@ -45,7 +45,7 @@ main (int argc, char *argv[]) elf_version (EV_CURRENT); /* Read the ELF from disk now. */ - int fd = open (fname, O_RDONLY); + int fd = open (fname, O_RDONLY | O_BINARY); if (fd == -1) { printf ("cannot open `%s' read-only: %s\n", fname, strerror (errno)); |
