forgot to commit fopen64 fix to this file

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4059 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-02-25 08:02:12 +00:00
parent 5307569aaf
commit 1489d85ce9

View File

@ -683,7 +683,7 @@ bool ftController::moveFile(const std::string& source,const std::string& dest)
bool ftController::copyFile(const std::string& source,const std::string& dest) bool ftController::copyFile(const std::string& source,const std::string& dest)
{ {
FILE *in = fopen(source.c_str(),"rb") ; FILE *in = fopen64(source.c_str(),"rb") ;
if(in == NULL) if(in == NULL)
{ {
@ -691,7 +691,7 @@ bool ftController::copyFile(const std::string& source,const std::string& dest)
return false ; return false ;
} }
FILE *out = fopen(dest.c_str(),"wb") ; FILE *out = fopen64(dest.c_str(),"wb") ;
if(out == NULL) if(out == NULL)
{ {
@ -1046,7 +1046,7 @@ bool ftController::FileRequest(const std::string& fname, const std::string& has
librs::util::ConvertUtf8ToUtf16(destination, destinationW); librs::util::ConvertUtf8ToUtf16(destination, destinationW);
FILE *f = _wfopen(destinationW.c_str(), L"w"); FILE *f = _wfopen(destinationW.c_str(), L"w");
#else #else
FILE *f = fopen(destination.c_str(),"w") ; FILE *f = fopen64(destination.c_str(),"w") ;
#endif #endif
if(f == NULL) if(f == NULL)
std::cerr << "Could not open file " << destination << " for writting." << std::endl ; std::cerr << "Could not open file " << destination << " for writting." << std::endl ;