Commit 032721c
committed
Improve DynamicMeter_getUiName() string length logic
Use 'size_t' for 'uiName' length variable and use String_safeStrncpy()
for copying strings.
Using 'size_t' for string length prevents a "-Wshorten-64-to-32"
warning which is enabled by default in Clang 19.1 parent 9f32ea7 commit 032721c
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | | - | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
0 commit comments