summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-12-18 17:08:29 +0100
committerLukas Pioch <lukas@zgow.de>2015-12-18 17:08:29 +0100
commita99c82323e310c883876a51f8fac3e075d87540d (patch)
treea9e2985d5527b4c78e3a1386ca1e37e8148294a9
parentMerge pull request #2769 from cuberite/FastNBTAsserts (diff)
parentFix off by two error in ReadString (diff)
downloadcuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar
cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.gz
cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.bz2
cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.lz
cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.xz
cuberite-a99c82323e310c883876a51f8fac3e075d87540d.tar.zst
cuberite-a99c82323e310c883876a51f8fac3e075d87540d.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/FastNBT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/FastNBT.cpp b/src/WorldStorage/FastNBT.cpp
index a90db2b71..1a81a6469 100644
--- a/src/WorldStorage/FastNBT.cpp
+++ b/src/WorldStorage/FastNBT.cpp
@@ -91,7 +91,7 @@ bool cParsedNBT::ReadString(size_t & a_StringStart, size_t & a_StringLen)
NEEDBYTES(2);
a_StringStart = m_Pos + 2;
a_StringLen = static_cast<size_t>(GetBEShort(m_Data + m_Pos));
- NEEDBYTES(a_StringLen);
+ NEEDBYTES(2 + a_StringLen);
m_Pos += 2 + a_StringLen;
return true;
}