diff options
author | madmaxoft <github@xoft.cz> | 2014-08-15 07:19:13 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-08-15 07:19:13 +0200 |
commit | 1f4a1383c2b261aa4644f8efeb31eedce4a62bf4 (patch) | |
tree | 7123178aaf45e7b4ef183126191180242492d044 /src/OSSupport/File.cpp | |
parent | File logger prefixes are 4 chars wide. (diff) | |
download | cuberite-1f4a1383c2b261aa4644f8efeb31eedce4a62bf4.tar cuberite-1f4a1383c2b261aa4644f8efeb31eedce4a62bf4.tar.gz cuberite-1f4a1383c2b261aa4644f8efeb31eedce4a62bf4.tar.bz2 cuberite-1f4a1383c2b261aa4644f8efeb31eedce4a62bf4.tar.lz cuberite-1f4a1383c2b261aa4644f8efeb31eedce4a62bf4.tar.xz cuberite-1f4a1383c2b261aa4644f8efeb31eedce4a62bf4.tar.zst cuberite-1f4a1383c2b261aa4644f8efeb31eedce4a62bf4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/File.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp index af8a832f6..2194c46ee 100644 --- a/src/OSSupport/File.cpp +++ b/src/OSSupport/File.cpp @@ -259,7 +259,7 @@ int cFile::ReadRestOfFile(AString & a_Contents) size_t DataSize = GetSize() - Tell(); // HACK: This depends on the internal knowledge that AString's data() function returns the internal buffer directly - a_Contents.assign((size_t)DataSize, '\0'); + a_Contents.assign(DataSize, '\0'); return Read((void *)a_Contents.data(), DataSize); } |