From c54a6ca7e598db5e6aadf95db370fb518cd4c176 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 6 May 2011 23:23:57 +0000 Subject: [PATCH] - copyfile copies files in binary mode now --- source/shared_lib/sources/platform/common/platform_common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/platform/common/platform_common.cpp b/source/shared_lib/sources/platform/common/platform_common.cpp index f43ce7628..14b771cb0 100644 --- a/source/shared_lib/sources/platform/common/platform_common.cpp +++ b/source/shared_lib/sources/platform/common/platform_common.cpp @@ -1843,8 +1843,8 @@ void copyFileTo(string fromFileName, string toFileName) { char *buff_ptr, *find_ptr; FILE *fp1, *fp2; - fp1 = fopen(fromFileName.c_str(),"r"); - fp2 = fopen(toFileName.c_str(),"w"); + fp1 = fopen(fromFileName.c_str(),"rb"); + fp2 = fopen(toFileName.c_str(),"wb"); while(fgets(buffer,MAX_LEN_SINGLE_LINE + 2,fp1)) { buff_ptr = buffer;