]> git.sur5r.net Git - openocd/blobdiff - src/helper/binarybuffer.c
helper: constify log_strings
[openocd] / src / helper / binarybuffer.c
index a3c993d3ea47f7821344719b3284adf7ba5f9415..3cadabdb1ade990ddcad858a67c592b44fb76042 100644 (file)
@@ -231,7 +231,7 @@ char *buf_to_str(const void *_buf, unsigned buf_len, unsigned radix)
                }
        }
 
-       const char *DIGITS = "0123456789ABCDEF";
+       const char * const DIGITS = "0123456789ABCDEF";
        for (unsigned j = 0; j < str_len; j++)
                str[j] = DIGITS[(int)str[j]];