Skip to content

Commit

Permalink
fix: sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Oct 20, 2024
1 parent f3125a9 commit 1252702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/network/protocol/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ void Protocol::XTEA_transform(uint8_t* buffer, size_t messageLength, bool encryp
std::ranges::copy_n(buffer + readPos, 8, tempBuffer.begin());

// Convert bytes to uint32_t considering little-endian order
std::array<uint8_t, 4> bytes0, bytes1;
std::array<uint8_t, 4> bytes0;
std::array<uint8_t, 4> bytes1;
std::copy_n(tempBuffer.begin(), 4, bytes0.begin());
std::copy_n(tempBuffer.begin() + 4, 4, bytes1.begin());

Expand Down

0 comments on commit 1252702

Please sign in to comment.