summaryrefslogtreecommitdiff
path: root/src/net/packets.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/packets.hpp')
-rw-r--r--src/net/packets.hpp2
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);
}