libqcdm,commands: 'const' instead 'static' in 'char' variable

This commit is contained in:
Pablo Barciela
2022-02-14 11:28:13 +01:00
parent 839af5553f
commit a5cee46ba9

View File

@@ -156,7 +156,7 @@ nv_mode_pref_from_qcdm (uint8_t qcdm)
static char *
bin2hexstr (const uint8_t *bytes, int len)
{
static char hex_digits[] = "0123456789abcdef";
const char hex_digits[] = "0123456789abcdef";
char *result;
int i;
size_t buflen = (len * 2) + 1;