Fixed some dumb bugs. Think I may have been asleep for last push.

This commit is contained in:
Fred Nicolson
2016-12-09 22:04:37 +00:00
parent d36a98b9b2
commit 9cbe2aa8e8
3 changed files with 41 additions and 20 deletions

View File

@@ -151,7 +151,7 @@ namespace fr
*/
inline Packet&operator>>(std::string &var)
{
uint32_t length;
uint32_t length = (uint32_t)var.length();
*this >> length;
var = buffer.substr(0, length);