Skip to content

Commit f994887

Browse files
committed
fix(radiogui): solve strcat on uninitialized variable errors
1 parent 27b7b93 commit f994887

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

radio/src/gui/colorlcd/mainview/view_logical_switches.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class LogicalSwitchDisplayFooter : public Window
139139
}
140140

141141
// CSW params - V2
142-
strcat(s, " ");
142+
strcpy(s, " ");
143143
switch (lsFamily) {
144144
case LS_FAMILY_BOOL:
145145
case LS_FAMILY_STICKY:

radio/src/gui/colorlcd/model/model_logical_switches.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class LogicalSwitchButton : public ListLineButton
434434
}
435435

436436
// CSW params - V2
437-
strcat(s, " ");
437+
strcpy(s, " ");
438438
switch (lsFamily) {
439439
case LS_FAMILY_BOOL:
440440
case LS_FAMILY_STICKY:

0 commit comments

Comments
 (0)