Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/Bridge/src/BridgeUdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ int BridgeUDP::parsePacket(){
}
remote_ip = IPAddress(si_other.sin_addr.s_addr);
remote_port = ntohs(si_other.sin_port);
rx_buffer = new cbuf(len);
rx_buffer = new cbuf(len+1);
rx_buffer->write(buf, len);
return len;
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/Bridge/src/BridgeUdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BridgeUDP : public UDP {
IPAddress multicast_ip;
IPAddress remote_ip;
uint16_t remote_port;
char buffer[1460];
char buffer[1500];
size_t buffer_len;
cbuf * rx_buffer;
public:
Expand Down