win32 compatibility

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1095 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-03-23 14:45:51 +00:00
parent 4ef56e1b79
commit ef54d9d176
2 changed files with 10 additions and 5 deletions

View file

@ -196,7 +196,7 @@ bool ftController::moveFile(const std::string& source,const std::string& dest)
static const int BUFF_SIZE = 10485760 ; // 10 MB buffer to speed things up.
void *buffer = malloc(BUFF_SIZE) ;
FILE *in = fopen(source.c_str(),"r") ;
FILE *in = fopen(source.c_str(),"rb") ;
if(in == NULL)
{
@ -204,7 +204,7 @@ bool ftController::moveFile(const std::string& source,const std::string& dest)
return false ;
}
FILE *out = fopen(dest.c_str(),"w") ;
FILE *out = fopen(dest.c_str(),"wb") ;
if(out == NULL)
{