1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

Fix: Corrected a nibbleswap in logging code

This commit is contained in:
Philipp Schafft 2019-08-03 14:03:22 +00:00
parent c214da3f52
commit ecdfa060d7

View File

@ -198,8 +198,8 @@ void igloo_private__vsnprintf(char *str, size_t size, const char *format, va_lis
} else {
*(str++) = '\\';
*(str++) = 'x';
*(str++) = hextable[(*arg >> 0) & 0x0F];
*(str++) = hextable[(*arg >> 4) & 0x0F];
*(str++) = hextable[(*arg >> 0) & 0x0F];
/* Also count the additional chars for string size and block length */
size -= 3;
block_len -= 3;