1
0
Mirror von https://github.com/luanti-org/luanti.git synchronisiert 2026-01-06 17:32:15 +01:00

Fix for commit 87dcee6 It uses the wrong variable and only covers some use cases. This change covers all use cases.

Dieser Commit ist enthalten in:
gregorycu
2016-01-04 16:15:50 +11:00
committet von Loic Blot
Ursprung 09a6910dc7
Commit e7e9171f37

Datei anzeigen

@@ -77,7 +77,7 @@ void NetworkPacket::putRawString(const char* src, u32 len)
m_data.resize(m_datasize);
}
if (m_datasize == 0)
if (len == 0)
return;
memcpy(&m_data[m_read_offset], src, len);