Skip to content

Commit

Permalink
Fix: array was designed too small for holding the full expansion name.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Jul 24, 2024
1 parent 7e96288 commit 9078f8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ArduinoOptaDigitalMechExpansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ArduinoOptaDigitalMechExpansion::SharedPtr ArduinoOptaDigitalMechExpansion::crea
{
UA_StatusCode rc = UA_STATUSCODE_GOOD;

char display_name[32] = {0};
char display_name[64] = {0};
snprintf(display_name, sizeof(display_name), "Expansion %d: Digital (Mechanical)", exp_num);

char node_name[32] = {0};
Expand Down
2 changes: 1 addition & 1 deletion src/ArduinoOptaDigitalStSolidExpansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ArduinoOptaDigitalStSolidExpansion::SharedPtr ArduinoOptaDigitalStSolidExpansion
{
UA_StatusCode rc = UA_STATUSCODE_GOOD;

char display_name[32] = {0};
char display_name[64] = {0};
snprintf(display_name, sizeof(display_name), "Expansion %d: Digital (Solid State)", exp_num);

char node_name[32] = {0};
Expand Down

0 comments on commit 9078f8b

Please sign in to comment.