diff options
author | worktycho <work.tycho@gmail.com> | 2016-01-07 02:31:27 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2016-01-07 02:31:27 +0100 |
commit | 5593db13eb84b756d10a7e5054c74c88d78ff85b (patch) | |
tree | 58db7ffefac6b6878f9ebc37ff7d754f56cceabd /src/Protocol | |
parent | Merge pull request #2844 from mathias-github/silktouch (diff) | |
parent | Fixed Clang warnings. (diff) | |
download | cuberite-5593db13eb84b756d10a7e5054c74c88d78ff85b.tar cuberite-5593db13eb84b756d10a7e5054c74c88d78ff85b.tar.gz cuberite-5593db13eb84b756d10a7e5054c74c88d78ff85b.tar.bz2 cuberite-5593db13eb84b756d10a7e5054c74c88d78ff85b.tar.lz cuberite-5593db13eb84b756d10a7e5054c74c88d78ff85b.tar.xz cuberite-5593db13eb84b756d10a7e5054c74c88d78ff85b.tar.zst cuberite-5593db13eb84b756d10a7e5054c74c88d78ff85b.zip |
Diffstat (limited to 'src/Protocol')
-rw-r--r-- | src/Protocol/Protocol18x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol18x.cpp b/src/Protocol/Protocol18x.cpp index ad2964bed..9b716ff92 100644 --- a/src/Protocol/Protocol18x.cpp +++ b/src/Protocol/Protocol18x.cpp @@ -1916,7 +1916,7 @@ void cProtocol180::AddReceivedData(const char * a_Data, size_t a_Size) bb.ReadAll(Packet); Packet.resize(Packet.size() - 1); // Drop the final NUL pushed there for over-read detection AString Out; - CreateHexDump(Out, Packet.data(), (int)Packet.size(), 24); + CreateHexDump(Out, Packet.data(), Packet.size(), 24); LOGD("Packet contents:\n%s", Out.c_str()); #endif // _DEBUG @@ -2145,7 +2145,7 @@ void cProtocol180::HandlePacketLoginEncryptionResponse(cByteBuffer & a_ByteBuffe // Decrypt EncNonce using privkey cRsaPrivateKey & rsaDecryptor = cRoot::Get()->GetServer()->GetPrivateKey(); - Int32 DecryptedNonce[MAX_ENC_LEN / sizeof(Int32)]; + UInt32 DecryptedNonce[MAX_ENC_LEN / sizeof(Int32)]; int res = rsaDecryptor.Decrypt(reinterpret_cast<const Byte *>(EncNonce.data()), EncNonce.size(), reinterpret_cast<Byte *>(DecryptedNonce), sizeof(DecryptedNonce)); if (res != 4) { |