Skip to content

Commit

Permalink
nettypes.cpp: Fix logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Sep 13, 2023
1 parent 64f1834 commit fd63dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netplay/nettypes.cpp
Expand Up @@ -802,7 +802,7 @@ void NETbytes(std::vector<uint8_t> *vec, unsigned maxLen)

if (len > maxLen)
{
debug(LOG_ERROR, "NETstring: %s packet, length %u truncated at %u", NETgetPacketDir() == PACKET_ENCODE ? "Encoding" : "Decoding", len, maxLen);
debug(LOG_ERROR, "NETbytes: %s packet, length %u truncated at %u", NETgetPacketDir() == PACKET_ENCODE ? "Encoding" : "Decoding", len, maxLen);
}

len = std::min<unsigned>(len, maxLen); // Truncate length if necessary.
Expand Down

0 comments on commit fd63dff

Please sign in to comment.