From 6fc0f5f1c1704664e178430056376981520744b4 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 23 Jun 2014 21:44:50 -0700 Subject: Swat --- src/net/packets.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net') 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& head, AString& repeat) return RecvResult::Error; // reinterpret_cast is needed to correctly handle an empty vector const char *begin = sign_cast(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); } -- cgit v1.2.3-60-g2f50