diff options
Diffstat (limited to 'third_party/npapi/npspy/common/logfile.cpp')
-rw-r--r-- | third_party/npapi/npspy/common/logfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/npapi/npspy/common/logfile.cpp b/third_party/npapi/npspy/common/logfile.cpp index b26fb0d..669ad49 100644 --- a/third_party/npapi/npspy/common/logfile.cpp +++ b/third_party/npapi/npspy/common/logfile.cpp @@ -72,9 +72,9 @@ void CLogFile::close() } } -DWORD CLogFile::write(char * buf) +DWORD CLogFile::write(const std::string& buf) { - return XP_WriteFile(hFile, buf, strlen(buf)); + return XP_WriteFile(hFile, buf.c_str(), buf.length()); } void CLogFile::flush() |