From 34f90d6b3a5f2621eaab7ffdd941aa448a110fe8 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Wed, 3 Dec 2003 09:16:46 +0000 Subject: [PATCH] PowerPC tester: open results file in binary mode, aka fix pb on DOS. --- SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp b/SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp index b0850738..50f1b280 100644 --- a/SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp +++ b/SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp @@ -1294,12 +1294,12 @@ int main(int argc, char *argv[]) if (argc > 1) { const char *file = argv[1]; #if defined(__powerpc__) - if ((fp = fopen(file, "w")) == NULL) { + if ((fp = fopen(file, "wb")) == NULL) { fprintf(stderr, "ERROR: can't open %s for writing\n", file); return EXIT_FAILURE; } #else - if ((fp = fopen(file, "r")) == NULL) { + if ((fp = fopen(file, "rb")) == NULL) { fprintf(stderr, "ERROR: can't open %s for reading\n", file); return EXIT_FAILURE; }