Fix potential buffer clean issue

This commit is contained in:
Dmitry Galenko 2022-11-20 13:12:51 +01:00
parent 0e04bea39e
commit f4704181e9

View File

@ -125,7 +125,7 @@ byte is_inited = 0;
void init_coder() {
if (is_inited)
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 j = 0; j < 28; j++) {
byte c = usx_sets[i][j];