summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/File.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-15 07:19:13 +0200
committermadmaxoft <github@xoft.cz>2014-08-15 07:19:13 +0200
commit1f4a1383c2b261aa4644f8efeb31eedce4a62bf4 (patch)
tree7123178aaf45e7b4ef183126191180242492d044 /src/OSSupport/File.cpp
parentFile logger prefixes are 4 chars wide. (diff)
downloadcuberite-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.cpp2
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);
}