We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36dae48 commit d819dbcCopy full SHA for d819dbc
src/Modbus.cpp
@@ -694,7 +694,7 @@ void Modbus::reportServerId() {
694
_frame[2] = 0x00; // Server ID
695
_frame[3] = 0xFF; // Run Indicator Status
696
if (_additional_data) { // Additional Data
697
- strncpy ( (char *) &_frame[4], _additional_data, strlen (_additional_data));
+ strcpy ( (char *) &_frame[4], _additional_data);
698
}
699
_reply = MB_REPLY_NORMAL;
700
0 commit comments