From 7ced4e41ba79297690b121bca26a019ab11be353 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 15 Apr 2003 12:16:47 +0000 Subject: [PATCH] * md.c (md_start_debug): Need to open the file in binary mode. --- cipher/ChangeLog | 4 ++++ cipher/md.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cipher/ChangeLog b/cipher/ChangeLog index 83d053055..8476eb014 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,3 +1,7 @@ +2003-04-15 Werner Koch + + * md.c (md_start_debug): Need to open the file in binary mode. + 2003-02-11 David Shaw * Makefile.am: Make sure sha512.c is included in the tarball. diff --git a/cipher/md.c b/cipher/md.c index 8a6b1d415..6ab50960f 100644 --- a/cipher/md.c +++ b/cipher/md.c @@ -507,7 +507,7 @@ md_start_debug( MD_HANDLE md, const char *suffix ) } idx++; sprintf(buf, "dbgmd-%05d" EXTSEP_S "%.10s", idx, suffix ); - md->debug = fopen(buf, "w"); + md->debug = fopen(buf, "wb"); if( !md->debug ) log_debug("md debug: can't open %s\n", buf ); }