diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-12 16:56:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-12 16:56:14 +0300 |
commit | 2b5db5baf923a0c822e7ee048f218fd264e91f19 (patch) | |
tree | 1d9590f40e9ba0ee32e5441d6c2d69f82f58ba3f /src/net/messagein.cpp | |
parent | 7ff1b993bfc1e65a2e2d44bbcfc6444421aa69a2 (diff) | |
download | mv-2b5db5baf923a0c822e7ee048f218fd264e91f19.tar.gz mv-2b5db5baf923a0c822e7ee048f218fd264e91f19.tar.bz2 mv-2b5db5baf923a0c822e7ee048f218fd264e91f19.tar.xz mv-2b5db5baf923a0c822e7ee048f218fd264e91f19.zip |
Add missing packet field comments.
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r-- | src/net/messagein.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index dee3c2c64..7d6a427ff 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -216,7 +216,7 @@ std::string MessageIn::readString(int length, const char *const dstr) { // Get string length if (length < 0) - length = readInt16(); + length = readInt16("len"); // Make sure the string isn't erroneous if (length < 0 || mPos + length > mLength) @@ -243,7 +243,7 @@ std::string MessageIn::readRawString(int length, const char *const dstr) { // Get string length if (length < 0) - length = readInt16(); + length = readInt16("len"); // Make sure the string isn't erroneous if (length < 0 || mPos + length > mLength) @@ -286,7 +286,7 @@ unsigned char *MessageIn::readBytes(int length, const char *const dstr) { // Get string length if (length < 0) - length = readInt16(); + length = readInt16("len"); // Make sure the string isn't erroneous if (length < 0 || mPos + length > mLength) |