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 08aee2c commit a57cf9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netplay/nettypes.cpp
Original file line number Diff line number Diff line change
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 a57cf9d

Please sign in to comment.