Tweaks for windows

This commit is contained in:
Kayne Ruse
2015-08-23 19:41:01 +10:00
parent c36c5210ab
commit dfa8683c47
3 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -23,6 +23,7 @@
#include "channels.hpp"
#include <cstring>
#include <stdexcept>
#include <sstream>
@@ -307,7 +308,7 @@ void LobbyMenu::SendLoginRequest() {
ClientPacket packet;
packet.type = SerialPacketType::LOGIN_REQUEST;
packet.clientIndex = clientIndex;
strncpy(packet.username, config["client.username"].c_str(), PACKET_STRING_SIZE);
strncpy(packet.username, config["client.username"].c_str(), PACKET_STRING_SIZE+1);
network.SendTo(Channels::SERVER, &packet);
}