Skip to content

Commit

Permalink
Update modbuslayer.h
Browse files Browse the repository at this point in the history
15 characters for the IP + 1 for the null terminator
  • Loading branch information
IAmNotThisSilverBody authored and azoitl committed Jan 26, 2025
1 parent c4c8a01 commit fb80e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/modbus/modbuslayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace forte {

private:
struct STcpParams {
char mIp[15];
char mIp[16];
unsigned int mPort;
};
struct SRtuParams {
Expand Down

0 comments on commit fb80e19

Please sign in to comment.