Skip to content

Commit

Permalink
ID buffer size was also incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Oct 2, 2023
1 parent cd07de2 commit 18e9e43
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ using ConnectCallback = std::function<void(ConnectionError)>;
using DisconnectCallback = std::function<void(void)>;

const int kPortMaxLength = 5; // port is uint16_t
const int kIdMaxLength = chip::Dnssd::kHostNameMaxLength + kPortMaxLength;
// +1 for the : between the hostname and the port.
const int kIdMaxLength = chip::Dnssd::kHostNameMaxLength + kPortMaxLength + 1;

class CastingPlayerAttributes
{
Expand Down

0 comments on commit 18e9e43

Please sign in to comment.