summaryrefslogtreecommitdiffstats
path: root/common/rfb/Logger_file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/Logger_file.cxx')
-rw-r--r--common/rfb/Logger_file.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/Logger_file.cxx b/common/rfb/Logger_file.cxx
index 8a109e4a..cf195c0d 100644
--- a/common/rfb/Logger_file.cxx
+++ b/common/rfb/Logger_file.cxx
@@ -97,7 +97,7 @@ void Logger_File::write(int level, const char *logname, const char *message)
void Logger_File::setFilename(const char* filename)
{
closeFile();
- m_filename = strDup(filename);
+ m_filename = safe_strdup(filename);
}
void Logger_File::setFile(FILE* file)
@@ -113,7 +113,7 @@ void Logger_File::closeFile()
fclose(m_file);
m_file = 0;
}
- strFree(m_filename);
+ free(m_filename);
m_filename = 0;
}
}