1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

* md.c (md_start_debug): Need to open the file in binary mode.

This commit is contained in:
Werner Koch 2003-04-15 12:16:47 +00:00
parent 7b63a8ed5c
commit 7ced4e41ba
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-04-15 Werner Koch <wk@gnupg.org>
* md.c (md_start_debug): Need to open the file in binary mode.
2003-02-11 David Shaw <dshaw@jabberwocky.com> 2003-02-11 David Shaw <dshaw@jabberwocky.com>
* Makefile.am: Make sure sha512.c is included in the tarball. * Makefile.am: Make sure sha512.c is included in the tarball.

View File

@ -507,7 +507,7 @@ md_start_debug( MD_HANDLE md, const char *suffix )
} }
idx++; idx++;
sprintf(buf, "dbgmd-%05d" EXTSEP_S "%.10s", idx, suffix ); sprintf(buf, "dbgmd-%05d" EXTSEP_S "%.10s", idx, suffix );
md->debug = fopen(buf, "w"); md->debug = fopen(buf, "wb");
if( !md->debug ) if( !md->debug )
log_debug("md debug: can't open %s\n", buf ); log_debug("md debug: can't open %s\n", buf );
} }