From 1489d85ce9045ffe8ce7943170dd98d9856f90f1 Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 25 Feb 2011 08:02:12 +0000 Subject: [PATCH] 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 --- libretroshare/src/ft/ftcontroller.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index e124d471a..6684d3840 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -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) { - FILE *in = fopen(source.c_str(),"rb") ; + FILE *in = fopen64(source.c_str(),"rb") ; if(in == NULL) { @@ -691,7 +691,7 @@ bool ftController::copyFile(const std::string& source,const std::string& dest) return false ; } - FILE *out = fopen(dest.c_str(),"wb") ; + FILE *out = fopen64(dest.c_str(),"wb") ; if(out == NULL) { @@ -1046,7 +1046,7 @@ bool ftController::FileRequest(const std::string& fname, const std::string& has librs::util::ConvertUtf8ToUtf16(destination, destinationW); FILE *f = _wfopen(destinationW.c_str(), L"w"); #else - FILE *f = fopen(destination.c_str(),"w") ; + FILE *f = fopen64(destination.c_str(),"w") ; #endif if(f == NULL) std::cerr << "Could not open file " << destination << " for writting." << std::endl ;