aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-04-15 12:20:31 +0000
committerWerner Koch <[email protected]>2003-04-15 12:20:31 +0000
commit297e8791082a1fe9f638414de13f7bdc3cecfe27 (patch)
tree97d0b7e2db39cc16025945f1931863335f03c1b3
parent* acinclude.m4 (GNUPG_CHECK_ENDIAN): Fix quoting of r.e. using (diff)
downloadgnupg-297e8791082a1fe9f638414de13f7bdc3cecfe27.tar.gz
gnupg-297e8791082a1fe9f638414de13f7bdc3cecfe27.zip
* md.c (md_start_debug): Need to open the file in binary mode.
-rw-r--r--cipher/ChangeLog4
-rw-r--r--cipher/md.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index 2441614e3..0455fc5a8 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-15 Werner Koch <[email protected]>
+
+ * md.c (md_start_debug): Need to open the file in binary mode.
+
2003-02-21 David Shaw <[email protected]>
* cipher.c (setup_cipher_table): #ifdef all optional ciphers.
diff --git a/cipher/md.c b/cipher/md.c
index 0e5f5f8cd..b5185bd92 100644
--- a/cipher/md.c
+++ b/cipher/md.c
@@ -1,5 +1,5 @@
/* md.c - message digest dispatcher
- * Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999, 2002, 2003 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -522,7 +522,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 );
}