Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/log.c: bump XXDLEN 16->32 to ensure buffer isn't too small
GCC 8 and GCC 9 both are uncomfortable with the snprintf'ing of format string "%04zu: %02x" fitting into 16 bytes, and it's unclear to me this is an unwarranted concern. If the buffer is indeed too small, the result would not be a memory safety error AFAIK but the truncated string would provide poor log messages. Likely harmless but instead of worrying about any of that just allocate a few more bytes to make it clear to programmers and compilers alike that there's nothing to worry about.
- Loading branch information