summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/GZipFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/OSSupport/GZipFile.cpp')
-rw-r--r--source/OSSupport/GZipFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/OSSupport/GZipFile.cpp b/source/OSSupport/GZipFile.cpp
index dbdef3a8b..c57de5198 100644
--- a/source/OSSupport/GZipFile.cpp
+++ b/source/OSSupport/GZipFile.cpp
@@ -85,7 +85,7 @@ int cGZipFile::ReadRestOfFile(AString & a_Contents)
-bool cGZipFile::Write(const AString & a_Contents)
+bool cGZipFile::Write(const char * a_Contents, int a_Size)
{
if (m_File == NULL)
{
@@ -99,7 +99,7 @@ bool cGZipFile::Write(const AString & a_Contents)
return false;
}
- return (gzwrite(m_File, a_Contents.data(), a_Contents.size()) != 0);
+ return (gzwrite(m_File, a_Contents, a_Size) != 0);
}