mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 01:16:55 +00:00
Fix potential buffer clean issue
This commit is contained in:
parent
0e04bea39e
commit
f4704181e9
@ -125,7 +125,7 @@ byte is_inited = 0;
|
|||||||
void init_coder() {
|
void init_coder() {
|
||||||
if (is_inited)
|
if (is_inited)
|
||||||
return;
|
return;
|
||||||
memset(usx_code_94, '\0', sizeof(usx_code_94));
|
memset_s(usx_code_94, '\0', sizeof(usx_code_94));
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
for (int j = 0; j < 28; j++) {
|
for (int j = 0; j < 28; j++) {
|
||||||
byte c = usx_sets[i][j];
|
byte c = usx_sets[i][j];
|
||||||
|
Loading…
Reference in New Issue
Block a user