[Telnet] Telnet encoding fix (#3269)

This commit is contained in:
Chris Miles 2023-04-05 11:16:25 -05:00 committed by GitHub
parent 3a1e88f9ed
commit f2f8fae58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ void EQ::Net::TCPConnection::Write(const char *data, size_t count)
WriteBaton *baton = new WriteBaton;
baton->connection = this;
baton->buffer = new char[count];;
baton->buffer = new char[count];
uv_write_t *write_req = new uv_write_t;
memset(write_req, 0, sizeof(uv_write_t));

View File

@ -268,8 +268,8 @@ void ClientList::SendCLEList(const int16& admin, const char* to, WorldTCPConnect
strcpy(newline, "\r\n");
else
strcpy(newline, "^");
std::vector<char> out;
auto out = fmt::memory_buffer();
iterator.Reset();
while(iterator.MoreElements()) {
ClientListEntry* cle = iterator.GetData();
@ -1008,7 +1008,7 @@ void ClientList::ConsoleSendWhoAll(const char* to, int16 admin, Who_All_Struct*
if (whom)
whomlen = strlen(whom->whom);
std::vector<char> out;
auto out = fmt::memory_buffer();
fmt::format_to(std::back_inserter(out), "Players on server:");
if (connection->IsConsole())
fmt::format_to(std::back_inserter(out), "\r\n");

View File

@ -311,7 +311,7 @@ void ZSList::SendZoneStatus(const char* to, int16 admin, WorldTCPConnection* con
strcpy(locked, "No");
}
std::vector<char> out;
auto out = fmt::memory_buffer();
if (connection->IsConsole()) {
fmt::format_to(std::back_inserter(out), "World Locked: {}\r\n", locked);