Commit 6258542b authored by mercury233's avatar mercury233 Committed by DailyShana

fix lasthost length (#1910)

parent 57c079a5
......@@ -904,7 +904,7 @@ void Game::LoadConfig() {
gameConf.serverport = atoi(valbuf);
} else if(!strcmp(strbuf, "lasthost")) {
BufferIO::DecodeUTF8(valbuf, wstr);
BufferIO::CopyWStr(wstr, gameConf.lasthost, 20);
BufferIO::CopyWStr(wstr, gameConf.lasthost, 100);
} else if(!strcmp(strbuf, "lastport")) {
BufferIO::DecodeUTF8(valbuf, wstr);
BufferIO::CopyWStr(wstr, gameConf.lastport, 20);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment