diff options
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r-- | src/net/messagein.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index 23ea8181..2c452a4d 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -90,7 +90,7 @@ std::string MessageIn::readString(int length) return ""; } - // Read the string + // Read the string char const *stringBeg = mData + mPos, *stringEnd = (char const *)memchr(stringBeg, '\0', length); std::string readString(stringBeg, stringEnd ? stringEnd - stringBeg : length); |