Small code improvements in the file managing classes.
Added FileReader and FileWriter object variables to the FileTransfer class.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@421 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb/FileManager.cxx b/rfb/FileManager.cxx
index bcc1281..9592152 100644
--- a/rfb/FileManager.cxx
+++ b/rfb/FileManager.cxx
@@ -36,10 +36,12 @@
}
bool
-FileManager::create()
+FileManager::create(char *pFilename)
{
if (m_pFile != NULL) return false;
+ strcpy(m_szFilename, pFilename);
+
m_pFile = fopen(m_szFilename, m_szMode);
if (m_pFile == NULL) {