Copy message tester database file in binary mode.

This commit is contained in:
Ghislain MARY 2015-01-30 10:32:29 +01:00
parent 31d3bd0bfa
commit b4e301ada0

View file

@ -1006,7 +1006,7 @@ message_tester_copy_file(const char *from, const char *to)
size_t n;
/* Open "from" file for reading */
in=fopen(from, "r");
in=fopen(from, "rb");
if ( in == NULL )
{
ms_error("Can't open %s for reading: %s\n",from,strerror(errno));
@ -1014,7 +1014,7 @@ message_tester_copy_file(const char *from, const char *to)
}
/* Open "to" file for writing (will truncate existing files) */
out=fopen(to, "w");
out=fopen(to, "wb");
if ( out == NULL )
{
ms_error("Can't open %s for writing: %s\n",to,strerror(errno));