diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-23 21:44:50 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-23 21:44:50 -0700 |
commit | 6fc0f5f1c1704664e178430056376981520744b4 (patch) | |
tree | f1e9cff0f85c3a00fbd72c5d385c95ab0f04c2a1 /src/net | |
parent | 413cd3fbc5138512ade671907ece6457b7d98d56 (diff) | |
download | tmwa-6fc0f5f1c1704664e178430056376981520744b4.tar.gz tmwa-6fc0f5f1c1704664e178430056376981520744b4.tar.bz2 tmwa-6fc0f5f1c1704664e178430056376981520744b4.tar.xz tmwa-6fc0f5f1c1704664e178430056376981520744b4.zip |
Swat
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/packets.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/packets.hpp b/src/net/packets.hpp index 2e00ad2..9cfb1da 100644 --- a/src/net/packets.hpp +++ b/src/net/packets.hpp @@ -485,7 +485,7 @@ RecvResult recv_vpacket(Session *s, Packet_Head<id>& head, AString& repeat) return RecvResult::Error; // reinterpret_cast is needed to correctly handle an empty vector const char *begin = sign_cast<const char *>(net_repeat.data()); - const char *end = begin + repeat.size(); + const char *end = begin + net_repeat.size(); end = std::find(begin, end, '\0'); repeat = XString(begin, end, nullptr); } |