mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 02:39:22 +00:00
Copy message tester database file in binary mode.
This commit is contained in:
parent
31d3bd0bfa
commit
b4e301ada0
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue